<?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: Bar Chart Line, based stats sum in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283846#M85782</link>
    <description>&lt;P&gt;Hi Jeremiahc4, &lt;/P&gt;

&lt;P&gt;What I am tendando do is the following :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="relatorioGeral"  considerar=Sim esforco="&lt;EM&gt;" status_projeto="Execução" codigo != NULL&lt;BR /&gt;&lt;BR /&gt;
categoria='Projeto' cliente='&lt;/EM&gt;' gp='*'&lt;BR /&gt;&lt;BR /&gt;
| dedup codigo&lt;BR /&gt;
| eval min=custo_total_estimado * 0.8&lt;BR /&gt;&lt;BR /&gt;
| eval max=custo_total_estimado * 1.2&lt;BR /&gt;
| stats last(_time) as Periodo,&lt;BR /&gt;&lt;BR /&gt;
sum(custo_total_estimado) as 'Total Estimado',&lt;BR /&gt;&lt;BR /&gt;
sum(custo_total_realizado) as 'Total Realizado',&lt;BR /&gt;
sum(custo_total_projetado) as 'Total Projetado', &lt;BR /&gt;
sum(max) as 'Limite Máximo',&lt;BR /&gt;
sum(min) as 'Limite Mínimo'&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And choose the columns:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/149244-overlay.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;And the result: &lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/149245-chart2.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Has somehow show these points as lines ?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:23:54 GMT</pubDate>
    <dc:creator>markux</dc:creator>
    <dc:date>2020-09-29T10:23:54Z</dc:date>
    <item>
      <title>Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283842#M85778</link>
      <description>&lt;P&gt;Regard's, &lt;/P&gt;

&lt;P&gt;I have a bar chart is a project cost of summation. In this chart I need to have two vertical lines where :&lt;BR /&gt;
Topline is the upper limit and the lower the minimum limit cost of a project. The bottom line is 80 % of the estimated total project cost and the top line represents 120% of that cost&lt;/P&gt;

&lt;P&gt;You can enter these two lines in a bar graph without series , as in the image below :&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1651i03336E8C5CB8CDD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:03:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283842#M85778</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-07-26T19:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283843#M85779</link>
      <description>&lt;P&gt;Assuming you have a query like this &lt;CODE&gt;... |  timechart sum(cost) as summation by something&lt;/CODE&gt;. To this, add the following. and set &lt;CODE&gt;TopLimit&lt;/CODE&gt; &amp;amp; &lt;CODE&gt;BottomLimit&lt;/CODE&gt; as overlay values&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | eval TopLimit=Estimate*1.2 | eval BottomLimit=Estimate*.8 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/Editdashboardpanelvisualizations#Chart_Overlay"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/Editdashboardpanelvisualizations#Chart_Overlay&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283843#M85779</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-26T19:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283844#M85780</link>
      <description>&lt;P&gt;Could use a bit more information to fully understand what you are trying to do specifically, but you can put simple lines across a chart like that with an eval command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search terms&amp;gt; | eval top=400000 | eval bottom=300000 | timechart sum(value) as "Total Value" ... max(top) as "Top Line" max(bottom) as "Bottom Line"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your graph choose column format, then you can choose format and click on Chart overlay and add Top &amp;amp; Bottom limits as overlays. There are also options you could add to a dashboard to do this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.chart.overlayFields"&amp;gt;"Top Line","Bottom Line"&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283844#M85780</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2016-07-26T19:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283845#M85781</link>
      <description>&lt;P&gt;Thank you for sundareshr response . &lt;/P&gt;

&lt;P&gt;I have detailed what I'm trying to do below&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283845#M85781</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-07-26T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283846#M85782</link>
      <description>&lt;P&gt;Hi Jeremiahc4, &lt;/P&gt;

&lt;P&gt;What I am tendando do is the following :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="relatorioGeral"  considerar=Sim esforco="&lt;EM&gt;" status_projeto="Execução" codigo != NULL&lt;BR /&gt;&lt;BR /&gt;
categoria='Projeto' cliente='&lt;/EM&gt;' gp='*'&lt;BR /&gt;&lt;BR /&gt;
| dedup codigo&lt;BR /&gt;
| eval min=custo_total_estimado * 0.8&lt;BR /&gt;&lt;BR /&gt;
| eval max=custo_total_estimado * 1.2&lt;BR /&gt;
| stats last(_time) as Periodo,&lt;BR /&gt;&lt;BR /&gt;
sum(custo_total_estimado) as 'Total Estimado',&lt;BR /&gt;&lt;BR /&gt;
sum(custo_total_realizado) as 'Total Realizado',&lt;BR /&gt;
sum(custo_total_projetado) as 'Total Projetado', &lt;BR /&gt;
sum(max) as 'Limite Máximo',&lt;BR /&gt;
sum(min) as 'Limite Mínimo'&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And choose the columns:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/149244-overlay.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;And the result: &lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/149245-chart2.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Has somehow show these points as lines ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283846#M85782</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2020-09-29T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283847#M85783</link>
      <description>&lt;P&gt;Try this workaround (the width of column will get reduced), if output like this is acceptable for you.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="relatorioGeral" considerar=Sim esforco="" status_projeto="Execução" codigo != NULL categoria="Projeto" cliente="" gp="" | dedup codigo | eval min=custo_total_estimado  0.8 | eval max=custo_total_estimado * 1.2 | stats last(_time) as Periodo, sum(custo_total_estimado) as "Total Estimado", sum(custo_total_realizado) as "Total Realizado", sum(custo_total_projetado) as "Total Projetado", sum(max) as "Limite Máximo", sum(min) as "Limite Mínimo"
| appendpipe [| eval Periodo=Periodo-1 | eval "Total Estimado"=null() | eval  "Total Realizado"=null() | eval "Total Projetado"=null() ]
| appendpipe [| eval Periodo=Periodo+1 | eval "Total Estimado"=null() | eval  "Total Realizado"=null() | eval "Total Projetado"=null() ]
| sort Periodo
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283847#M85783</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-26T19:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283848#M85784</link>
      <description>&lt;P&gt;Thanks somesoni2,&lt;/P&gt;

&lt;P&gt;I made some changes and got what I needed .&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283848#M85784</guid>
      <dc:creator>markux</dc:creator>
      <dc:date>2016-07-26T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Line, based stats sum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283849#M85785</link>
      <description>&lt;P&gt;Take a look at this excellent Q&amp;amp;A:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/426394/is-conditional-background-coloring-possible-in-spl.html"&gt;https://answers.splunk.com/answers/426394/is-conditional-background-coloring-possible-in-spl.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 03:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bar-Chart-Line-based-stats-sum/m-p/283849#M85785</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-27T03:47:13Z</dc:date>
    </item>
  </channel>
</rss>

