<?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 add percentage in unstacked bar chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555812#M157807</link>
    <description>&lt;P&gt;Hey that worked.. Thankyou!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 15:21:03 GMT</pubDate>
    <dc:creator>ritupatil02</dc:creator>
    <dc:date>2021-06-15T15:21:03Z</dc:date>
    <item>
      <title>How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555797#M157800</link>
      <description>&lt;P&gt;I have a bar chart as shown below. I want to display the percentage of Error, Warn and Info as single value visualisation as another panel. How can I do that?&lt;/P&gt;&lt;P&gt;The query for bar chart panel is:&lt;/P&gt;&lt;P&gt;| stats count by lvl | transpose header_field=lvl column_name=lvl&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14633i931AC887EE0FC5DE/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555797#M157800</guid>
      <dc:creator>ritupatil02</dc:creator>
      <dc:date>2021-06-15T14:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555802#M157802</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count by lvl 
| eventstats sum(count) as total
| eval count=100*count/total
| fields - total
| transpose header_field=lvl column_name=lvl
| fields - lvl&lt;/LI-CODE&gt;&lt;P&gt;Then set visualisation to single trellis mode - you may want to change the number format precision to something other than integers&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555802#M157802</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-15T14:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555805#M157804</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235321"&gt;@ritupatil02&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count by lvl  
| eventstats sum(count) as Total | eval perc=round(count*100/Total,2)
| xyseries count lvl  perc&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555805#M157804</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-15T14:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555812#M157807</link>
      <description>&lt;P&gt;Hey that worked.. Thankyou!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 15:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555812#M157807</guid>
      <dc:creator>ritupatil02</dc:creator>
      <dc:date>2021-06-15T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555813#M157808</link>
      <description>&lt;P&gt;What if I want 3 different single value panels for Error, Info and Warn resp. Is that possible?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 15:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555813#M157808</guid>
      <dc:creator>ritupatil02</dc:creator>
      <dc:date>2021-06-15T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555815#M157809</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235321"&gt;@ritupatil02&lt;/a&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Like this?&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="Screenshot 2021-06-15 at 9.04.53 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14637i57A15DF2EA625184/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-06-15 at 9.04.53 PM.png" alt="Screenshot 2021-06-15 at 9.04.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 15:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555815#M157809</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-15T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add percentage in unstacked bar chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555825#M157815</link>
      <description>&lt;P&gt;No. Instead of using trellis, can we have the 3 percentages in 3 different single value panels&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-percentage-in-unstacked-bar-chart/m-p/555825#M157815</guid>
      <dc:creator>ritupatil02</dc:creator>
      <dc:date>2021-06-15T16:25:32Z</dc:date>
    </item>
  </channel>
</rss>

