<?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: Why is Appending two search queries with different conditions giving me the same results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425813#M122052</link>
    <description>&lt;P&gt;Yes, the queries are different. And, the Data field consists - "N/A","Yes","No" and "Exception Scenario" and all of them exist in the index "xyz" . However,while using the above search query I am not able to retrieve the data as per my expectation.Kindly suggest a way forward.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 04:14:03 GMT</pubDate>
    <dc:creator>monyathomas</dc:creator>
    <dc:date>2019-06-17T04:14:03Z</dc:date>
    <item>
      <title>Why is Appending two search queries with different conditions giving me the same results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425811#M122050</link>
      <description>&lt;P&gt;I have two survey types "a" and "b"  and there are two details need to be displayed as 'a%' (For all kind of "Data") and 'a1%" (For "Data"="N/A" OR "Data"="Yes" )  .However when I am using append and trying the below query , I see that both the columns  a% and a1% are displaying the same results.&lt;/P&gt;

&lt;P&gt;index="xyz"&lt;BR /&gt;
| fillnull "Data" value="N/A"&lt;BR /&gt;
|chart count over "Survey Month" by "Survey Type" &lt;BR /&gt;
| addtotals &lt;BR /&gt;
|rename Total as "Grand Total"&lt;BR /&gt;
| eval "a%"=round(('a'/'Grand Total')*100,2) &lt;BR /&gt;
| eval "a%"='a%'+"%" &lt;BR /&gt;
| table "Survey Month","a","b","a%" &lt;BR /&gt;
|append[search "Data"="N/A" OR "Data"="Yes" &lt;BR /&gt;
| chart count over "Survey Month" by "Survey Type"]|addtotals&lt;BR /&gt;
| rename Total as "Grand Total"&lt;BR /&gt;
| eval "a1%"=round(('a'/'Grand Total')*100,2)&lt;BR /&gt;
| eval "a1%"='a1%'+"%"&lt;BR /&gt;
| table "Survey Month","a%","a1%"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425811#M122050</guid>
      <dc:creator>monyathomas</dc:creator>
      <dc:date>2020-09-30T00:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Appending two search queries with different conditions giving me the same results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425812#M122051</link>
      <description>&lt;P&gt;Are the two queries really different?  They look different, but perhaps index "xyz" only contains events with the Data field of "N/A or "Yes".  And maybe events with the Data field of "N/A or "Yes" only exist in index "xyz".  Base searches should be as specific as possible without eliminating desired events.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425812#M122051</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-14T12:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Appending two search queries with different conditions giving me the same results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425813#M122052</link>
      <description>&lt;P&gt;Yes, the queries are different. And, the Data field consists - "N/A","Yes","No" and "Exception Scenario" and all of them exist in the index "xyz" . However,while using the above search query I am not able to retrieve the data as per my expectation.Kindly suggest a way forward.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 04:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Appending-two-search-queries-with-different-conditions/m-p/425813#M122052</guid>
      <dc:creator>monyathomas</dc:creator>
      <dc:date>2019-06-17T04:14:03Z</dc:date>
    </item>
  </channel>
</rss>

