<?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: How do I display more than one Multivalue fields in a stacked column chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471983#M132793</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="Events,Items,Cp,Sp
1,item1,5,6
1,item2,7,4
1,item3,8,9
2,item1,53,62
2,item2,17,14
2,item3,89,90
3,item5,50,55
3,item6,17,14
3,item7,110,90" 
| multikv forceheader=1
| stats list(Items) as items list(Cp) as cp list(Sp) as sp by Events
| rename COMMENT as "this is sample. from here, the logic"
| eval counter=mvrange(0,mvcount(items))
| mvexpand counter
| foreach items cp sp [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;' ,counter)]
| table  items cp sp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Apr 2020 00:35:33 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-04-14T00:35:33Z</dc:date>
    <item>
      <title>How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471982#M132792</link>
      <description>&lt;P&gt;I have a table having many multi-value fields.&lt;BR /&gt;
For example: items, cp and sp are multivalue fields. Using the following command&lt;BR /&gt;
...| table items,cp,sp&lt;BR /&gt;
say,we have the following table as an ouput&lt;BR /&gt;
Events   ----      items ----cp---sp&lt;BR /&gt;
1                  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;       item1     5    6
       item2     7    4
       item3     8    9   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;2&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;       item1     53    62
       item2     17    14
       item3     89    90 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;3&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        item5     50   55
        item6     17    14
        item7     110    90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My intent is to use stacked column chart such that each column is an item column having cp and sp values stacked and the items should be  grouped by events. Different events can be considered as time,at different time cost/selling price of an item may differ.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 23:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471982#M132792</guid>
      <dc:creator>manish095</dc:creator>
      <dc:date>2020-04-13T23:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471983#M132793</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="Events,Items,Cp,Sp
1,item1,5,6
1,item2,7,4
1,item3,8,9
2,item1,53,62
2,item2,17,14
2,item3,89,90
3,item5,50,55
3,item6,17,14
3,item7,110,90" 
| multikv forceheader=1
| stats list(Items) as items list(Cp) as cp list(Sp) as sp by Events
| rename COMMENT as "this is sample. from here, the logic"
| eval counter=mvrange(0,mvcount(items))
| mvexpand counter
| foreach items cp sp [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;' ,counter)]
| table  items cp sp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Apr 2020 00:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471983#M132793</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-14T00:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471984#M132794</link>
      <description>&lt;P&gt;Actually I was able to convert those multivalue fieds into single value and break it as row-wise and show it as column chart row wise. But this is not my requirement. I need a stacked column chart having all the multivalue fields stacked in the column,and the column should be the item. These columns should be grouped event-wise. Event is not any field here,consider it as time.&lt;/P&gt;

&lt;P&gt;So basically I need that table only which i have put in the question...&lt;STRONG&gt;| table items,cp,sp&lt;/STRONG&gt; shows the table but if i see it as stacked column chart ,it doesn't show up.&lt;BR /&gt;
You can check my requirement in the following image.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 21:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471984#M132794</guid>
      <dc:creator>manish095</dc:creator>
      <dc:date>2020-04-14T21:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471985#M132795</link>
      <description>&lt;P&gt;I made column chart like your image.&lt;BR /&gt;
check Viz &amp;gt;&amp;gt; Format&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 21:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471985#M132795</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-14T21:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471986#M132796</link>
      <description>&lt;P&gt;Thanks for the prompt reply. Yes,your solution is giving the chart but as I said I want the items to be grouped , the solution is showing it as an individual bar. Grouped stacked column chart is my requirement, grouped by events.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 21:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471986#M132796</guid>
      <dc:creator>manish095</dc:creator>
      <dc:date>2020-04-14T21:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471987#M132797</link>
      <description>&lt;P&gt;what's stacked? cp and sp ?&lt;BR /&gt;
&lt;CODE&gt;grouped&lt;/CODE&gt;&lt;BR /&gt;
column chart doesn't have this option.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 22:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471987#M132797</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-14T22:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471988#M132798</link>
      <description>&lt;P&gt;yes. cp and sp are stacked,they are fine. Okay so you are saying those stacked column charts can't be grouped per event?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 22:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471988#M132798</guid>
      <dc:creator>manish095</dc:creator>
      <dc:date>2020-04-14T22:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471989#M132799</link>
      <description>&lt;P&gt;default column chart can't group it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 09:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471989#M132799</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-15T09:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display more than one Multivalue fields in a stacked column chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471990#M132800</link>
      <description>&lt;P&gt;okay..thanks..I also couldn't figure out any way to do so&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 16:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-display-more-than-one-Multivalue-fields-in-a-stacked/m-p/471990#M132800</guid>
      <dc:creator>manish095</dc:creator>
      <dc:date>2020-04-15T16:58:00Z</dc:date>
    </item>
  </channel>
</rss>

