<?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: Splunk Chart - Percentage in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746056#M58672</link>
    <description>&lt;P&gt;Worked perfectly. Exactly what I needed. Thanks so much for your quick response!&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 15:21:50 GMT</pubDate>
    <dc:creator>chrisludke</dc:creator>
    <dc:date>2025-05-13T15:21:50Z</dc:date>
    <item>
      <title>Splunk Chart - Percentage</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746046#M58670</link>
      <description>&lt;P&gt;Looking for assistance in adding a percentage to an existing chart result. I have the following Splunk search that is able to chart the maximum value found of ValueA and ValueB and chart by hosts. ValueA&amp;nbsp; is the maximum count found (lets say total number of objects). ValueB is the maximum observed usage of ValueA. I do not use a bin or time reference directly in the search, rather using Splunk's pre-build time reference on-demand (Example , "last 24 hours" when executing the search)&lt;/P&gt;&lt;P&gt;index=indextype&amp;nbsp; sourcetype=sourcetype&amp;nbsp; "search_string"&amp;nbsp; |&amp;nbsp; chart&amp;nbsp; max(valueA)&amp;nbsp; max(valueB)&amp;nbsp; by&amp;nbsp; host&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 14:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746046#M58670</guid>
      <dc:creator>chrisludke</dc:creator>
      <dc:date>2025-05-13T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Chart - Percentage</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746050#M58671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310142"&gt;@chrisludke&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following to eval a percentage, note that Ive named the field on the stats so it is easier to reference.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats max(valueA) as max_valueA, max(valueB) as max_valueB by host 
| eval percentage = round((max_valueB / max_valueA) * 100, 2) 
| table host, max_valueA, max_valueB, percentage&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval valueA=1000, valueB=932, host="Test"
| stats max(valueA) as max_valueA, max(valueB) as max_valueB by host 
| eval percentage = round((max_valueB / max_valueA) * 100, 2) 
| table host, max_valueA, max_valueB, percentage&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1747146955151.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38956i53F7FBDD1F5318F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1747146955151.png" alt="livehybrid_0-1747146955151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 14:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746050#M58671</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-13T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Chart - Percentage</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746056#M58672</link>
      <description>&lt;P&gt;Worked perfectly. Exactly what I needed. Thanks so much for your quick response!&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 15:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Chart-Percentage/m-p/746056#M58672</guid>
      <dc:creator>chrisludke</dc:creator>
      <dc:date>2025-05-13T15:21:50Z</dc:date>
    </item>
  </channel>
</rss>

