<?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: Display Only the Total Row in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233557#M188439</link>
    <description>&lt;P&gt;Hi @woodcock, that's fantastic, thank you for taking the time to reply to my post.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2015 12:10:07 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2015-11-12T12:10:07Z</dc:date>
    <item>
      <title>Display Only the Total Row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233555#M188437</link>
      <description>&lt;P&gt;Hi, I wonder whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;With some help along the way I've written the query below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main auditSource=frontend auditType=Survey detail.overall!="None" 
| replace frontend with "Overall Satisfaction" 
| rename detail.overall As "Rating" 
| replace 1 with "Very Satisfied", 2 with "Satisfied", 3 with "Neither", 4 with "Dissatisfied", 5 with "Very Dissatisfied" 
| chart count by Rating |eval "Rating Mark"=case(Rating="Very Satisfied", 100, Rating="Satisfied", 75 , Rating="Neither", 50, Rating="Dissatisfied", 25, Rating="Very Dissatisfied", 0 , 1=1, 0)  
| rename count as "Total No Of Replies" 
| eval "Rating Calculation"='Total No Of Replies' * 'Rating Mark'
| table "Rating", "Total No Of Replies", "Rating Mark", "Rating Calculation" 
| addcoltotals labelfield=Rating label="Total" 
|  eval Weighted Rating =if(Rating=="Total",tostring(round('Rating Calculation' *1 / 'Total No Of Replies',1)) + "%",null()) 
| eval Rating=(Rating) | eval sort_field=case(Rating=="Very Satisfied",1,Rating=="Satisfied",2,Rating=="Neutral",3,Rating=="Dissatisfied",4,Rating=="Very Dissatisfied",5) 
| sort sort_field 
| fields "Rating", "Total No Of Replies", "Rating Mark", "Weighted Rating"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'd like to do is display only the 'Total' row.&lt;/P&gt;

&lt;P&gt;I found a link &lt;A href="https://answers.splunk.com/answers/206455/how-do-display-only-the-total-row.html"&gt;here&lt;/A&gt; and tried  the 'fields + Total' and 'where ser=Total' solutions but I've been unable to get these to work.&lt;/P&gt;

&lt;P&gt;I just wondered whether someone may be able to look at this please and offer some guidance on how I may achieve this.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 10:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233555#M188437</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-12T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only the Total Row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233556#M188438</link>
      <description>&lt;P&gt;Assuming that it is the last/bottom line, probably the easiest way is like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | tail 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Nov 2015 12:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233556#M188438</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-12T12:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only the Total Row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233557#M188439</link>
      <description>&lt;P&gt;Hi @woodcock, that's fantastic, thank you for taking the time to reply to my post.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 12:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233557#M188439</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-12T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only the Total Row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233558#M188440</link>
      <description>&lt;P&gt;Heads up you can also always use the search command again to filter down to just the row(s) you need, even aftert they've been grouped and transformed by other commands.     eg here   &lt;CODE&gt;| search Rating=="Total"&lt;/CODE&gt; would do it too. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 16:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233558#M188440</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2015-11-12T16:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only the Total Row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233559#M188441</link>
      <description>&lt;P&gt;Hi, thank you very much for this piece of useful information.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 06:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Only-the-Total-Row/m-p/233559#M188441</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-13T06:20:03Z</dc:date>
    </item>
  </channel>
</rss>

