<?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 create a chart with percentage ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214963#M43574</link>
    <description>&lt;P&gt;Is it not giving you that right now? It is calculating the percentage based on total events.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2016 18:17:51 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-27T18:17:51Z</dc:date>
    <item>
      <title>how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214956#M43567</link>
      <description>&lt;P&gt;Location                           Processing Time (minutes)                                                 trans_date&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Central                                           21                                                                            09/21/2016&lt;BR /&gt;
South East                                     40                                                                           09/22/2016&lt;/P&gt;

&lt;P&gt;Is there a way I can get a chart with time buckets , y-axis-primary showing percentage (transactions), y-axis secondary showing processing_time (0-10 mins, 10-20 mins etc) and x axis showing trans_date ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:10:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214956#M43567</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2020-09-29T11:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214957#M43568</link>
      <description>&lt;P&gt;Could you provide some mock output (table) on what you data would look like?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214957#M43568</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T17:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214958#M43569</link>
      <description>&lt;P&gt;Hi- following is the mock table&lt;/P&gt;

&lt;P&gt;Trans_date  DurationBucket  Percent&lt;BR /&gt;
9/21/2016   0-10Mins             10.35&lt;BR /&gt;
9/22/2016   10-20 Mins           25.23&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214958#M43569</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2016-09-27T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214959#M43570</link>
      <description>&lt;P&gt;And how is the percent calculated? Based on count of events for that day OR total events for all day?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214959#M43570</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214960#M43571</link>
      <description>&lt;P&gt;based on count of events for that day. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214960#M43571</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2016-09-27T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214961#M43572</link>
      <description>&lt;P&gt;Give this a try. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving field Location, Processing_time, trans_date
| bucket span=10 Processing_time 
| stats count by trans_date Processing_time 
| eventstats sum(count) as Total by trans_date
| eval Percent=round(count*100/Total,2)
| table trans_date, Processing_time Percent
| rename Processing_time as DurationBucket 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214961#M43572</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214962#M43573</link>
      <description>&lt;P&gt;hi. Thanks for above command. how can I tweak the above command to get total events for all day, so that I can view the percentage of events that are processed on a given day within timebucket (i.e 10% events processed in 0-10 mins, 25% events processed in 10-20 mins on 9/25/2016 (trans_date) and the same on 09/26/2016 (trans_date) etc)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214962#M43573</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2020-09-29T11:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214963#M43574</link>
      <description>&lt;P&gt;Is it not giving you that right now? It is calculating the percentage based on total events.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214963#M43574</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T18:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214964#M43575</link>
      <description>&lt;P&gt;With the above command I am getting individual columns per date . I actually want a chart that shows the following . X-axis should show the date and the column should be divided by events percentage for a given day. &lt;/P&gt;

&lt;P&gt;y-Axis (time buckets)&lt;BR /&gt;&lt;BR /&gt;
                                                        &lt;STRONG&gt;30 %&lt;/STRONG&gt;       &lt;STRONG&gt;35%&lt;/STRONG&gt;&lt;BR /&gt;
                                                        &lt;EM&gt;20 %&lt;/EM&gt;           &lt;EM&gt;26%&lt;/EM&gt;&lt;/P&gt;

&lt;H2&gt;                                                        &lt;STRONG&gt;10 %&lt;/STRONG&gt;       &lt;STRONG&gt;12%&lt;/STRONG&gt;&lt;/H2&gt;

&lt;P&gt;X-Axis                                             09/25                  09/26&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214964#M43575</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2016-09-27T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214965#M43576</link>
      <description>&lt;P&gt;Give this a try..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving field Location, Processing_time, trans_date
 | bucket span=10 Processing_time 
 | stats count by trans_date Processing_time 
 | eventstats sum(count) as Total by trans_date
 | eval Percent=round(count*100/Total,2)
 | table trans_date, Processing_time Percent
 | rename Processing_time as DurationBucket | xyseries trans_date DurationBucket Percent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214965#M43576</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T18:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214966#M43577</link>
      <description>&lt;P&gt;Hi. it is working to an extent. It is giving me multiple columns on the graph per date. I actually want to get a single column on the chart per date and that column should be shown in buckets with event percents. In this case,  we will have dual y-axis. left Y-axis will show the percent and the right y-axis will show the average time . Not sure if this can be done in splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214966#M43577</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2016-09-27T19:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214967#M43578</link>
      <description>&lt;P&gt;Can you try my original answer with stacked chart option?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214967#M43578</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T19:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214968#M43579</link>
      <description>&lt;P&gt;Hi. Thanks a lot for guidance. With the stacked chart option I was able to merge the events to a single column per date. In the same chart,  Is there a way in splunk to show a line which gives the average time (i.e average time taken by events on a given day) ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 20:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214968#M43579</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2016-09-27T20:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214969#M43580</link>
      <description>&lt;P&gt;Give this a try. Select stacked chart option and in chart overlay select field AverageTime&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving field Location, Processing_time, trans_date
| eventstats avg(Processing_time) as avg by trans_date
 | bucket span=10 Processing_time 
 | stats count values(avg) as avg by trans_date Processing_time 
 | eventstats sum(count) as Total by trans_date
 | eval Percent=round(count*100/Total,2)
 | table trans_date, Processing_time Percent avg
 | rename Processing_time as DurationBucket avg as AverageTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214969#M43580</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214970#M43581</link>
      <description>&lt;P&gt;Hi. With the above command I was able to get the average time with the overlay option but the columns are not stacked (even after selecting the stacked chart option). On a given date (trans_date) it is showing column for each DurationBucket.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214970#M43581</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2016-09-27T21:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214971#M43582</link>
      <description>&lt;P&gt;See if solution for this post works for you.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/81701/chart-overlay-and-different-graph-type.html"&gt;https://answers.splunk.com/answers/81701/chart-overlay-and-different-graph-type.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 01:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214971#M43582</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-28T01:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a chart with percentage ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214972#M43583</link>
      <description>&lt;P&gt;Thank you !! The following command you gave what I wanted.&lt;/P&gt;

&lt;P&gt;your current search giving field Location, Processing_time, trans_date&lt;BR /&gt;
  | bucket span=10 Processing_time &lt;BR /&gt;
  | stats count by trans_date Processing_time &lt;BR /&gt;
  | eventstats sum(count) as Total by trans_date&lt;BR /&gt;
  | eval Percent=round(count*100/Total,2)&lt;BR /&gt;
  | table trans_date, Processing_time Percent&lt;BR /&gt;
  | rename Processing_time as DurationBucket | xyseries trans_date DurationBucket Percent&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-create-a-chart-with-percentage/m-p/214972#M43583</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2020-09-29T11:10:57Z</dc:date>
    </item>
  </channel>
</rss>

