<?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: Split graph based on two conditions of same field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Split-graph-based-on-two-conditions-of-same-field/m-p/205819#M59856</link>
    <description>&lt;P&gt;Try OR operator&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fin_mng source="2013*" Company_name="ABCD" (Quarters=Q1 OR Quarters=Q2) | convert num("Income from Operations") as income_oper | convert num("Other Income") as other_income | eval TotalIncome= income_oper + other_income | chart sum(TotalIncome) as "Total Income" over source by Company_name 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Sep 2016 13:24:58 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-22T13:24:58Z</dc:date>
    <item>
      <title>Split graph based on two conditions of same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-graph-based-on-two-conditions-of-same-field/m-p/205818#M59855</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I want a graph that contains two columns, one should represent data for 1st half and 2nd half of a year. But I have data for 4 quarters and not for halves. How should I use the quarters for building a graph for halves? &lt;/P&gt;

&lt;P&gt;For quarters, it is working fine. But I want to add 2 quarters to display one half. Similarly, I have to calculate the half yearly values and display the two half-yearly results in two columns of the same chart.&lt;/P&gt;

&lt;P&gt;I tried using AND operator to choose Q1 and Q2. But it doesn't work. How should I achieve this?&lt;/P&gt;

&lt;P&gt;Here is the query&lt;BR /&gt;
index=fin_mng source="2013*" Company_name="ABCD" Quarters=Q1 AND Quarters=Q2 | convert num("Income from Operations") as income_oper | convert num("Other Income") as other_income  | eval TotalIncome= income_oper + other_income | chart  sum(TotalIncome) as "Total Income"  over source by Company_name &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-graph-based-on-two-conditions-of-same-field/m-p/205818#M59855</guid>
      <dc:creator>gokool2u</dc:creator>
      <dc:date>2020-09-29T11:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Split graph based on two conditions of same field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-graph-based-on-two-conditions-of-same-field/m-p/205819#M59856</link>
      <description>&lt;P&gt;Try OR operator&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fin_mng source="2013*" Company_name="ABCD" (Quarters=Q1 OR Quarters=Q2) | convert num("Income from Operations") as income_oper | convert num("Other Income") as other_income | eval TotalIncome= income_oper + other_income | chart sum(TotalIncome) as "Total Income" over source by Company_name 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2016 13:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-graph-based-on-two-conditions-of-same-field/m-p/205819#M59856</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-22T13:24:58Z</dc:date>
    </item>
  </channel>
</rss>

