<?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 How to perform chart command with two multifield columns in the table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624343#M217076</link>
    <description>&lt;P&gt;I performing the chart command for the below kind of table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command : [|&lt;STRONG&gt;Chart&amp;nbsp; values(course) as course&amp;nbsp; over ID by status&lt;/STRONG&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini_5_0-1671099564575.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23012i88E5B4FC172E7847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini_5_0-1671099564575.png" alt="Ashwini_5_0-1671099564575.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Received Output as BELOW:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini_5_1-1671099713528.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23013i1425EB762E22D68B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini_5_1-1671099713528.png" alt="Ashwini_5_1-1671099713528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Output :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini_5_2-1671099792212.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23014iC42CF5D2584B34C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini_5_2-1671099792212.png" alt="Ashwini_5_2-1671099792212.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kindly help to resolve this . I have tried |MVExpand&amp;nbsp; status also . . But it is picking only the first value and providing wrong output .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 14:44:54 GMT</pubDate>
    <dc:creator>Ashwini_5</dc:creator>
    <dc:date>2022-12-15T14:44:54Z</dc:date>
    <item>
      <title>How to perform chart command with two multifield columns in the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624343#M217076</link>
      <description>&lt;P&gt;I performing the chart command for the below kind of table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command : [|&lt;STRONG&gt;Chart&amp;nbsp; values(course) as course&amp;nbsp; over ID by status&lt;/STRONG&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini_5_0-1671099564575.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23012i88E5B4FC172E7847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini_5_0-1671099564575.png" alt="Ashwini_5_0-1671099564575.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Received Output as BELOW:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini_5_1-1671099713528.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23013i1425EB762E22D68B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini_5_1-1671099713528.png" alt="Ashwini_5_1-1671099713528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Output :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini_5_2-1671099792212.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23014iC42CF5D2584B34C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini_5_2-1671099792212.png" alt="Ashwini_5_2-1671099792212.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kindly help to resolve this . I have tried |MVExpand&amp;nbsp; status also . . But it is picking only the first value and providing wrong output .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624343#M217076</guid>
      <dc:creator>Ashwini_5</dc:creator>
      <dc:date>2022-12-15T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform chart command with two multifield columns in the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624534#M217123</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237432"&gt;@Ashwini_5&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;I'm Assuming that both Course and status are multivalve fields.&lt;BR /&gt;If my assumption is true the following search should hopefully be able to aid you in finding the solution.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| fields - _time
| eval ID = 1, course = "Course A,Course B,Course C",status="Expired OK Expired"
| append
    [| makeresults 
| fields - _time
| eval ID = 2, course = "Course A,Course B,Course C",status="OK OK Expired"]
| append
    [| makeresults 
| fields - _time
| eval ID = 3, course = "Course A,Course B,Course C",status="OK OK OK"]
| fields ID course status
| makemv course delim=","
| makemv status delim=" "
| mvexpand course
| eval status=case(course="Course A",mvindex(status,0,0),course="Course B",mvindex(status,1,1),course="Course C",mvindex(status,2,2))
| chart values(status) as status over ID by course&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Dec 2022 12:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624534#M217123</guid>
      <dc:creator>FelixLeh</dc:creator>
      <dc:date>2022-12-16T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform chart command with two multifield columns in the table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624558#M217124</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237432"&gt;@Ashwini_5&lt;/a&gt;&amp;nbsp;- Here is fully dynamic query that works with N number of course and status values:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval combined=mvzip(course, status, "|")
| mvexpand combined
| eval course=mvindex(split(combined, "|"), 0), status=mvindex(split(combined, "|"), 1)
| chart values(status) as status over ID by course&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VatsalJagani_0-1671201928367.png" style="width: 647px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23059i42C1418D9E62E6CD/image-dimensions/647x144?v=v2" width="647" height="144" role="button" title="VatsalJagani_0-1671201928367.png" alt="VatsalJagani_0-1671201928367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 14:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-chart-command-with-two-multifield-columns-in-the/m-p/624558#M217124</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-12-16T14:45:45Z</dc:date>
    </item>
  </channel>
</rss>

