<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Column Chart Stacked based on 4 columns(column 1 has duplicate because of group by 2nd column) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/579107#M201812</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ITWhisperer,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;All works fine. The problem now i have is val_4 is also stacked, i don't want val_4 to be stacked or plotted in chart, i just want to show val_4 in tool tip along with the existing tooltip&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g scenario&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application: ABC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;val_2_B is the total time taken to process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;val_4: is the total count of val_2_B items that was processed&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[expected to show in tooltip and same should not be plotted in chart]&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Please let me know if i am not clear&lt;BR /&gt;&lt;BR /&gt;| makeresults&lt;BR /&gt;| eval application="FSD", val_1="A", val_2=4839, val_3=5000, val_4=1000&lt;BR /&gt;| append&lt;BR /&gt;[| makeresults&lt;BR /&gt;| eval application="ABC", val_1="B", val_2=1000, val_3=3215,val_4=2000]&lt;BR /&gt;| append&lt;BR /&gt;[| makeresults&lt;BR /&gt;| eval application="ABC", val_1="E", val_2=478, val_3=4328,val_4=3000]&lt;BR /&gt;| table application val_1 val_2 val_3 val_4&lt;BR /&gt;| sort application&lt;BR /&gt;| streamstats count by application&lt;BR /&gt;| eventstats list(val_1) as val_1 by application&lt;BR /&gt;| foreach val_*&lt;BR /&gt;[| eval name="copy_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; ".mvindex(val_1,count-1)&lt;BR /&gt;| eval {name}=&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]&lt;BR /&gt;| stats values(copy_*) as * by application&lt;BR /&gt;| fields - val_1*&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 14:06:15 GMT</pubDate>
    <dc:creator>rajg369</dc:creator>
    <dc:date>2021-12-22T14:06:15Z</dc:date>
    <item>
      <title>Column Chart Stacked based on 4 columns(column 1 has duplicate because of group by 2nd column)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578657#M201673</link>
      <description>&lt;P&gt;e.g query&lt;/P&gt;&lt;P&gt;| makeresults | eval application="FSD", val_1="A", val_2=4839, val_3=5000 | append [| makeresults | eval application="ABC", val_1="B", val_2=1000, val_3=3215] | append [| makeresults | eval application="ABC", val_1="E", val_2=478, val_3=4328] | table application val_1 val_2 val_3 | sort application&lt;BR /&gt;&lt;BR /&gt;above query produces result table&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Table" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17259iB70822E913F4AC99/image-size/large?v=v2&amp;amp;px=999" role="button" title="SC1.PNG" alt="Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chart looks like&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SC2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17260i83BA42B9DAA046FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="SC2.PNG" alt="SC2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: instead of 2 stacked column ABC, i wanted 1 column(ABC) with 4 stacked values(1000,3215,478,4328) and FSD column with 2&amp;nbsp; stacked values as it is now&lt;BR /&gt;&lt;BR /&gt;Please help&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 16:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578657#M201673</guid>
      <dc:creator>rajg369</dc:creator>
      <dc:date>2021-12-16T16:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Column Chart Stacked based on 4 columns(column 1 has duplicate because of group by 2nd column)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578664#M201675</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults | eval application="FSD", val_1="A", val_2=4839, val_3=5000 | append [| makeresults | eval application="ABC", val_1="B", val_2=1000, val_3=3215] | append [| makeresults | eval application="ABC", val_1="E", val_2=478, val_3=4328] | table application val_1 val_2 val_3 | sort application
| streamstats count by application
| foreach val_*
    [| eval name="copy_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;_".count
    | eval {name}=&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
| stats values(copy_*) as * by application&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Dec 2021 16:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578664#M201675</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-16T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Column Chart Stacked based on 4 columns(column 1 has duplicate because of group by 2nd column)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578701#M201683</link>
      <description>&lt;P&gt;Thanks &lt;SPAN&gt;ITWhisperer&lt;/SPAN&gt;. It works.&lt;BR /&gt;&lt;BR /&gt;One more question on the same topic. How can I show Val_1(A/B/E...) in tooltip/legend?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This will help in understanding from the stacked column chart that the&lt;BR /&gt;value 1000 is from Application ABC and from B&lt;BR /&gt;value 479 is from Application ABC and from E&lt;BR /&gt;&lt;BR /&gt;right now it shows application and val_&amp;gt;2_x(pls refer image below) in both tooltip and legend&lt;/P&gt;&lt;P&gt;Please help&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SC3.jpg" style="width: 833px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17271i7055DFF71F20F4D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SC3.jpg" alt="SC3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 07:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578701#M201683</guid>
      <dc:creator>rajg369</dc:creator>
      <dc:date>2021-12-17T07:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Column Chart Stacked based on 4 columns(column 1 has duplicate because of group by 2nd column)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578731#M201685</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults | eval application="FSD", val_1="A", val_2=4839, val_3=5000 | append [| makeresults | eval application="ABC", val_1="B", val_2=1000, val_3=3215] | append [| makeresults | eval application="ABC", val_1="E", val_2=478, val_3=4328] | table application val_1 val_2 val_3 | sort application
| streamstats count by application
| eventstats list(val_1) as val_1 by application
| foreach val_*
    [| eval name="copy_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; ".mvindex(val_1,count-1)
    | eval {name}=&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
| stats values(copy_*) as * by application
| fields - val_1*&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Dec 2021 10:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/578731#M201685</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-17T10:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Column Chart Stacked based on 4 columns(column 1 has duplicate because of group by 2nd column)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/579107#M201812</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ITWhisperer,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;All works fine. The problem now i have is val_4 is also stacked, i don't want val_4 to be stacked or plotted in chart, i just want to show val_4 in tool tip along with the existing tooltip&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g scenario&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application: ABC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;val_2_B is the total time taken to process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;val_4: is the total count of val_2_B items that was processed&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;[expected to show in tooltip and same should not be plotted in chart]&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Please let me know if i am not clear&lt;BR /&gt;&lt;BR /&gt;| makeresults&lt;BR /&gt;| eval application="FSD", val_1="A", val_2=4839, val_3=5000, val_4=1000&lt;BR /&gt;| append&lt;BR /&gt;[| makeresults&lt;BR /&gt;| eval application="ABC", val_1="B", val_2=1000, val_3=3215,val_4=2000]&lt;BR /&gt;| append&lt;BR /&gt;[| makeresults&lt;BR /&gt;| eval application="ABC", val_1="E", val_2=478, val_3=4328,val_4=3000]&lt;BR /&gt;| table application val_1 val_2 val_3 val_4&lt;BR /&gt;| sort application&lt;BR /&gt;| streamstats count by application&lt;BR /&gt;| eventstats list(val_1) as val_1 by application&lt;BR /&gt;| foreach val_*&lt;BR /&gt;[| eval name="copy_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; ".mvindex(val_1,count-1)&lt;BR /&gt;| eval {name}=&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]&lt;BR /&gt;| stats values(copy_*) as * by application&lt;BR /&gt;| fields - val_1*&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 14:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-Chart-Stacked-based-on-4-columns-column-1-has-duplicate/m-p/579107#M201812</guid>
      <dc:creator>rajg369</dc:creator>
      <dc:date>2021-12-22T14:06:15Z</dc:date>
    </item>
  </channel>
</rss>

