<?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 can I create this report table with two column labels? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168922#M48194</link>
    <description>&lt;P&gt;Thank you &lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2015 08:56:03 GMT</pubDate>
    <dc:creator>Laya123</dc:creator>
    <dc:date>2015-08-17T08:56:03Z</dc:date>
    <item>
      <title>How can I create this report table with two column labels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168918#M48190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is it possible to get a report like this in Splunk?&lt;BR /&gt;&lt;BR /&gt;
I have fields &lt;CODE&gt;APP&lt;/CODE&gt;, &lt;CODE&gt;status&lt;/CODE&gt; and &lt;CODE&gt;category&lt;/CODE&gt;. Here I am taking the count of status for each category by APP. I want a category for each row, and under each APP, I want the status and total of each column with a Grand Total column on the far right side of the table. Please refer to the attached image sample.png as the table was too wide for proper formatting on this site.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168918#M48190</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2015-08-12T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create this report table with two column labels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168919#M48191</link>
      <description>&lt;P&gt;Like this (you will need to adjust some things to match your search/data and may need to re-order the fields):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YourBaseSearchHere APP="N-S" | eval app_status = APP . ":" . status | chart count over Cat by app_status | addtotals | rename Total AS "N-S Total" | appendcols [ YourBaseSearchHere APP="S-V" | eval app_status = APP . ":" . status | chart count over Cat by app_status | addtotals | rename Total AS "S-V Total" ]  | eval Grand_Total=0 | foreach *Total [ eval Grand_Total = Grand_Total + $&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;$ ] | addcoltotals labelfield=Cat label=Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Aug 2015 22:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168919#M48191</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-12T22:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create this report table with two column labels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168920#M48192</link>
      <description>&lt;P&gt;Thank you so much, its working.&lt;/P&gt;

&lt;P&gt;But one small thing. Is it possible to put N-S Total after app_status of N-S and S-V Total after app_Status of S-V Total and Grandtotal in last column&lt;BR /&gt;
Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:58:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168920#M48192</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2020-09-29T06:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create this report table with two column labels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168921#M48193</link>
      <description>&lt;P&gt;I do not understand why Splunk is reordering the fields but you can manually reorder them with the &lt;CODE&gt;fields&lt;/CODE&gt; command by specifying every field in the order that you desire.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 16:19:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168921#M48193</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-13T16:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create this report table with two column labels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168922#M48194</link>
      <description>&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 08:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-this-report-table-with-two-column-labels/m-p/168922#M48194</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2015-08-17T08:56:03Z</dc:date>
    </item>
  </channel>
</rss>

