<?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 populate percentage on bar chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684201#M56018</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;index="index A"&amp;nbsp;&lt;/P&gt;&lt;P&gt;| table _time, Audit&lt;/P&gt;&lt;P&gt;| addtotals fieldname=Total&lt;/P&gt;&lt;P&gt;| foreach * [eval Audit=round (('Audit'/Total*100),2)]&lt;/P&gt;&lt;P&gt;above is my query that i have created based on your idea, but seems not working. Below screenshot is the result for above query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akmal57_0-1713144964612.png" style="width: 779px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30396i0585F571B57F698F/image-dimensions/779x121?v=v2" width="779" height="121" role="button" title="Akmal57_0-1713144964612.png" alt="Akmal57_0-1713144964612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the values not showing in percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 01:37:29 GMT</pubDate>
    <dc:creator>Akmal57</dc:creator>
    <dc:date>2024-04-15T01:37:29Z</dc:date>
    <item>
      <title>How to populate percentage on bar chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/683548#M55945</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm monitoring compliance data for the past 7 days using timechart. My current query displays the count of "comply" and "not comply" events for each day.&lt;/P&gt;&lt;P&gt;index= indexA | timechart span=1d count by audit&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akmal57_0-1712546001897.png" style="width: 635px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30300i4BE0DD4CECDC216F/image-dimensions/635x165?v=v2" width="635" height="165" role="button" title="Akmal57_0-1712546001897.png" alt="Akmal57_0-1712546001897.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'd like to visualize this data as percentages instead. Is it possible to modify the search to display the percentage of compliant and non-compliant events on top of each bar?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;for&amp;nbsp;your&amp;nbsp;help!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 03:14:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/683548#M55945</guid>
      <dc:creator>Akmal57</dc:creator>
      <dc:date>2024-04-08T03:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate percentage on bar chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/683551#M55946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254344"&gt;@Akmal57&lt;/a&gt;,&amp;nbsp;try changing the format of the visualization to stacked&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KendallW_0-1712550803472.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30301i9ECA5AECB18B2FA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KendallW_0-1712550803472.png" alt="KendallW_0-1712550803472.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 04:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/683551#M55946</guid>
      <dc:creator>KendallW</dc:creator>
      <dc:date>2024-04-08T04:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate percentage on bar chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/683653#M55964</link>
      <description>&lt;P&gt;If you add the following after your timechart command it will change the values from numbers to percentages&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| addtotals fieldname=_Total
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round(('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/_Total*100),2) ]&lt;/LI-CODE&gt;&lt;P&gt;Note that the _ in front of the total field name prevents it from being displayed, then the foreach command just calculates the percentages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 23:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/683653#M55964</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-04-08T23:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate percentage on bar chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684199#M56017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's not working, it just staking the value of the bar chart.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 03:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684199#M56017</guid>
      <dc:creator>Akmal57</dc:creator>
      <dc:date>2024-04-15T03:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate percentage on bar chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684201#M56018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;index="index A"&amp;nbsp;&lt;/P&gt;&lt;P&gt;| table _time, Audit&lt;/P&gt;&lt;P&gt;| addtotals fieldname=Total&lt;/P&gt;&lt;P&gt;| foreach * [eval Audit=round (('Audit'/Total*100),2)]&lt;/P&gt;&lt;P&gt;above is my query that i have created based on your idea, but seems not working. Below screenshot is the result for above query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akmal57_0-1713144964612.png" style="width: 779px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30396i0585F571B57F698F/image-dimensions/779x121?v=v2" width="779" height="121" role="button" title="Akmal57_0-1713144964612.png" alt="Akmal57_0-1713144964612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the values not showing in percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 01:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684201#M56018</guid>
      <dc:creator>Akmal57</dc:creator>
      <dc:date>2024-04-15T01:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate percentage on bar chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684295#M56022</link>
      <description>&lt;P&gt;You have not done what I suggested, you have changed the SPL to something that will not work.&lt;/P&gt;&lt;P&gt;Please use the exact code I provided after your timechart command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 22:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-percentage-on-bar-chart/m-p/684295#M56022</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-04-15T22:38:29Z</dc:date>
    </item>
  </channel>
</rss>

