<?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 to show results of multiple pie charts into one single table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468058#M131789</link>
    <description>&lt;PRE&gt;&lt;CODE&gt; index="dx2" sourcetype=xyz
 | eval status =if(in(build,"Clone","Pipeline","Use","Complete","Scheduled","Progress"),"In-Progress","Pending")
 |stats count(eval(build!="NA")) as build_chart,count(eval(test!="NA")) as test_chart by status
 |transpose header_field=status column_name=chart_name| addtotals row=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, try it.&lt;/P&gt;

&lt;P&gt;@renjith.nair , I'm sorry for interrupting the conversation&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 09:38:39 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2019-11-04T09:38:39Z</dc:date>
    <item>
      <title>How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468051#M131782</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I have multiple pie charts showing count of completed and pending on some filter. &lt;BR /&gt;
Now want to show the results in table.&lt;BR /&gt;
For example, there is &lt;BR /&gt;
1st pie chat name "build_chart" &lt;BR /&gt;
search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dx2" sourcetype=xyz
| table _time application status user build env
| search build !="NA" 
| stats count by status 
| eval stat = count." : ".status 
| table stat, count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;output is: &lt;BR /&gt;
&lt;STRONG&gt;stat                count&lt;BR /&gt;
60:completed  60&lt;BR /&gt;
20:pending       20&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Another pie chart name "test_chart"&lt;BR /&gt;&lt;BR /&gt;
search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dx2" sourcetype=xyz
| table _time application status user test env
| search test !="NA" 
| stats count by status 
| eval stat = count." : ".status 
| table stat, count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;output:&lt;BR /&gt;
&lt;STRONG&gt;stat                    count&lt;BR /&gt;
40:completed  40&lt;BR /&gt;
10:pending       10&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Want to show all pie charts result in one table like below&lt;BR /&gt;
&lt;STRONG&gt;Chart_name           Total      completed   pending&lt;BR /&gt;
bulid_chart              80             60                20&lt;BR /&gt;
test_chart                 50            40                 10&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please suggest  some best approach.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468051#M131782</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2020-09-30T02:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468052#M131783</link>
      <description>&lt;P&gt;@woodcock / @richgalloway / @renjith.nair . Someone please help.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 07:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468052#M131783</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-10-31T07:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468053#M131784</link>
      <description>&lt;P&gt;@avni26 ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dx2" sourcetype=xyz
|stats count(eval(build!="NA")) as build_chart,count(eval(test!="NA")) as test_chart by status
|transpose header_field=status column_name=chart_name| addtotals row=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468053#M131784</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-10-31T09:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468054#M131785</link>
      <description>&lt;P&gt;@renjith.nair &lt;BR /&gt;
What if my base query of each pie chart where calculating status as completed/pending/in-progress based on condition matched.&lt;BR /&gt;
Example:&lt;BR /&gt;
index="dx2" sourcetype=xyz&lt;BR /&gt;
| table _time application  user build test env&lt;BR /&gt;
| search "build" !="NA" &lt;BR /&gt;
| eval status = CASE(match('build',"Clone") OR match('build',"Pipeline") OR match('build',"Use"), "Complete",'build'="Scheduled" OR match('build',"Progress"),"In-Progress",1=1,"Pending") &lt;BR /&gt;
| stats count by status  &lt;/P&gt;

&lt;P&gt;And another query is&lt;BR /&gt;
index="dx2" sourcetype=xyz&lt;BR /&gt;
| table _time application  user build test env&lt;BR /&gt;
| search "test" !="NA" &lt;BR /&gt;
| eval status = CASE(match('test',"Clone") OR match('test',"Use") OR match('test',"Pipeline") OR match('test',"Completed"), "Complete",'test'="Scheduled" OR match('test',"Progress"),"In-Progress",1=1,"Pending") &lt;BR /&gt;
| stats count by status  &lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 06:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468054#M131785</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-11-01T06:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468055#M131786</link>
      <description>&lt;P&gt;You best bet it to use a &lt;CODE&gt;base search&lt;/CODE&gt; and build a &lt;CODE&gt;data cube&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dx2" sourcetype=xyz
| fields_time application status user build env
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then use a &lt;CODE&gt;post-process&lt;/CODE&gt; search for your &lt;CODE&gt;build_chart&lt;/CODE&gt; panel:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search build !="NA"
| stats count by status
| eval stat = count." : ".status
| table stat, count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And use a &lt;CODE&gt;post-process&lt;/CODE&gt; search for your &lt;CODE&gt;test_chart&lt;/CODE&gt; panel:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search test !="NA"
| stats count by status
| eval stat = count." : ".status
| table stat, count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And a new one  for everything together:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by status
| eval stat = count." : ".status
| table stat, count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Nov 2019 19:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468055#M131786</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-02T19:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468056#M131787</link>
      <description>&lt;P&gt;@renjith.nair Please suggest.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 08:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468056#M131787</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-11-04T08:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468057#M131788</link>
      <description>&lt;P&gt;@woodcock What if my base query of each pie chart where calculating status as completed/pending/in-progress based on condition matched.&lt;BR /&gt;
Example:&lt;BR /&gt;
index="dx2" sourcetype=xyz&lt;BR /&gt;
| table _time application user build test env&lt;BR /&gt;
| search "build" !="NA"&lt;BR /&gt;
| eval status = CASE(match('build',"Clone") OR match('build',"Pipeline") OR match('build',"Use"), "Complete",'build'="Scheduled" OR match('build',"Progress"),"In-Progress",1=1,"Pending")&lt;BR /&gt;
| stats count by status&lt;/P&gt;

&lt;P&gt;And another query is&lt;BR /&gt;
index="dx2" sourcetype=xyz&lt;BR /&gt;
| table _time application user build test env&lt;BR /&gt;
| search "test" !="NA"&lt;BR /&gt;
| eval status = CASE(match('test',"Clone") OR match('test',"Use") OR match('test',"Pipeline") OR match('test',"Completed"), "Complete",'test'="Scheduled" OR match('test',"Progress"),"In-Progress",1=1,"Pending")&lt;BR /&gt;
| stats count by status &lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 08:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468057#M131788</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-11-04T08:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468058#M131789</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index="dx2" sourcetype=xyz
 | eval status =if(in(build,"Clone","Pipeline","Use","Complete","Scheduled","Progress"),"In-Progress","Pending")
 |stats count(eval(build!="NA")) as build_chart,count(eval(test!="NA")) as test_chart by status
 |transpose header_field=status column_name=chart_name| addtotals row=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, try it.&lt;/P&gt;

&lt;P&gt;@renjith.nair , I'm sorry for interrupting the conversation&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 09:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468058#M131789</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-04T09:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to show results of multiple pie charts into one single table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468059#M131790</link>
      <description>&lt;P&gt;So you put the &lt;CODE&gt;case&lt;/CODE&gt; statement in the base search.  It is the same thing.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 02:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-results-of-multiple-pie-charts-into-one-single-table/m-p/468059#M131790</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-08T02:27:44Z</dc:date>
    </item>
  </channel>
</rss>

