<?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 Pareto Chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Pareto-Chart/m-p/417907#M120211</link>
    <description>&lt;P&gt;I would like to make a Pareto chart that shows the sum of how many scrapped pieces were produced by their given reason (such as broken, bent, etc).  I am unsure of how to search/setup this chart.  Right now I have: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index=wipscrap OR index=componentscrap Department=D2&lt;BR /&gt;
| chart sum(Scrap) AS totalscrapdept BY "Scrap Reason Description" &lt;BR /&gt;
| sort - totalscrapdept&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;which gives me the correct bar graph. How can I show an overlay that correctly represents the data as a Pareto chart?  I'm very new to Splunk&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 17:46:20 GMT</pubDate>
    <dc:creator>kelseycasco</dc:creator>
    <dc:date>2019-07-30T17:46:20Z</dc:date>
    <item>
      <title>Pareto Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pareto-Chart/m-p/417907#M120211</link>
      <description>&lt;P&gt;I would like to make a Pareto chart that shows the sum of how many scrapped pieces were produced by their given reason (such as broken, bent, etc).  I am unsure of how to search/setup this chart.  Right now I have: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index=wipscrap OR index=componentscrap Department=D2&lt;BR /&gt;
| chart sum(Scrap) AS totalscrapdept BY "Scrap Reason Description" &lt;BR /&gt;
| sort - totalscrapdept&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;which gives me the correct bar graph. How can I show an overlay that correctly represents the data as a Pareto chart?  I'm very new to Splunk&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 17:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pareto-Chart/m-p/417907#M120211</guid>
      <dc:creator>kelseycasco</dc:creator>
      <dc:date>2019-07-30T17:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pareto-Chart/m-p/417908#M120212</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;You could use the following (although it could be optimized a lot more):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wipscrap OR index=componentscrap Department=D2
| chart sum(Scrap) AS totalscrapdept BY "Scrap Reason Description" 
| sort - totalscrapdept
| eventstats sum(totalscrapdept) as total
| eval percent=round((totalscrapdept/total)*100, 3)
| streamstats sum(percent) as percent_pareto
| fields "Scrap Reason Description" totalscrapdept  percent_pareto
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then in visualizations select Column Chart, then Format -&amp;gt; Chart Overlay (select the percent_pareto field and View as Axis [On])&lt;/P&gt;

&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 18:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pareto-Chart/m-p/417908#M120212</guid>
      <dc:creator>jaime_ramirez</dc:creator>
      <dc:date>2019-07-30T18:27:13Z</dc:date>
    </item>
  </channel>
</rss>

