<?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 overlap two bars in a Splunk chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274832#M82904</link>
    <description>&lt;P&gt;Where shall these numbers be used? Is there a chance to include a table and a visualisation?&lt;/P&gt;

&lt;P&gt;In this case you can introduce a temporary field like &lt;CODE&gt;eval DisplayTotalEvents = TotalEvents - TotalMatch&lt;/CODE&gt; for the bar chart, and use the correct total fields for the table...&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 14:15:26 GMT</pubDate>
    <dc:creator>DMohn</dc:creator>
    <dc:date>2016-07-21T14:15:26Z</dc:date>
    <item>
      <title>How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274827#M82899</link>
      <description>&lt;P&gt;I have this search that counts the times a product has been purchased and the times the same product has been purchased with some other product, in this case product m.&lt;BR /&gt;
I want to overlap the TotalEvents upon the TotalMatchs, but the option of stacked bars is just adding up the 2 fields.&lt;/P&gt;

&lt;P&gt;Can someone help me please?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=csv source="reglas2.csv" Productos!=m [ search index=main sourcetype=csv source="reglas2.csv" Productos!=m [search index=main sourcetype=csv source="reglas2.csv" Productos=m | fields Id_Transaccion] | fields Productos ] | stats count as TotalEvents by Productos | appendcols [search index=main sourcetype=csv source="reglas2.csv" Productos!=m [search index=main sourcetype=csv source="reglas2.csv" Productos=m | fields Id_Transaccion] | stats count as TotalMatch by Productos]|table Productos  TotalMatch TotalEvents
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&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/1617i07D6FB52DC3F3818/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, 19 Jul 2016 22:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274827#M82899</guid>
      <dc:creator>luna23</dc:creator>
      <dc:date>2016-07-19T22:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274828#M82900</link>
      <description>&lt;P&gt;Try area chart?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 01:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274828#M82900</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-20T01:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274829#M82901</link>
      <description>&lt;P&gt;I already  tried the area chart and it does overlap, but i want the same result in a bar chart&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274829#M82901</guid>
      <dc:creator>luna23</dc:creator>
      <dc:date>2016-07-21T13:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274830#M82902</link>
      <description>&lt;P&gt;If you really need to use bar charts, you could try to "cheat" by substracting the field TotalMatch from TotalEvents, and then stacking the fields. In this case you would see correct graphics, but your table results are wrong. &lt;/P&gt;

&lt;P&gt;Just for the visualisation it can be a usable method still...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=csv source="reglas2.csv" Productos!=m [ search index=main sourcetype=csv source="reglas2.csv" Productos!=m [search index=main sourcetype=csv source="reglas2.csv" Productos=m | fields Id_Transaccion] | fields Productos ] | stats count as TotalEvents by Productos | appendcols [search index=main sourcetype=csv source="reglas2.csv" Productos!=m [search index=main sourcetype=csv source="reglas2.csv" Productos=m | fields Id_Transaccion] | stats count as TotalMatch by Productos] | eval TotalEvents = TotalEvents - TotalMatch |table Productos  TotalMatch TotalEvents
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274830#M82902</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2016-07-21T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274831#M82903</link>
      <description>&lt;P&gt;Thanks DMohn,as you said it, the calculations will be wrong, although the chart will look good.&lt;BR /&gt;
But what i am trying to do here is a market basket analisys, so i need to show the correct times a product has been purchased  (TotalEvents) and the times a product has been purchased with other product (TotalMatch)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274831#M82903</guid>
      <dc:creator>luna23</dc:creator>
      <dc:date>2016-07-21T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274832#M82904</link>
      <description>&lt;P&gt;Where shall these numbers be used? Is there a chance to include a table and a visualisation?&lt;/P&gt;

&lt;P&gt;In this case you can introduce a temporary field like &lt;CODE&gt;eval DisplayTotalEvents = TotalEvents - TotalMatch&lt;/CODE&gt; for the bar chart, and use the correct total fields for the table...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274832#M82904</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2016-07-21T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlap two bars in a Splunk chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274833#M82905</link>
      <description>&lt;P&gt;It could be an option, Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlap-two-bars-in-a-Splunk-chart/m-p/274833#M82905</guid>
      <dc:creator>luna23</dc:creator>
      <dc:date>2016-07-21T14:18:16Z</dc:date>
    </item>
  </channel>
</rss>

