<?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 Timechart fillnull with append search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-fillnull-with-append-search/m-p/432585#M123602</link>
    <description>&lt;P&gt;So, I'm trying to come up with a way to compare data from this year and last year into a &lt;CODE&gt;Single Value&lt;/CODE&gt; Graph but I am unable to force the 0 value into the first timechart with it's own date. This is my search query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host=*obe2e*ap* code=NAV7000 
| timechart span=1d dc(confirmationNumber) as "Stats"
| append [search index=* source=*funnel*'step5'  earliest=-1y+1d@h latest=-1y+1d+1h@h | timechart span=1d count as "Stats"] 
| sort _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried adding &lt;CODE&gt;| table _time, Stats | fillnull Stats&lt;/CODE&gt; but due to it already having a value cause by the append search, it won't work. I also tried renaming both fields, the first one into &lt;CODE&gt;Stats2&lt;/CODE&gt; and second one into &lt;CODE&gt;Stats&lt;/CODE&gt; and apply the same concept &lt;CODE&gt;| table _time, Stats, Stats2 | fillnull Stats2&lt;/CODE&gt; and it works but it registers under the same date, and not a different one, therefore the &lt;CODE&gt;Single Value&lt;/CODE&gt; visualization doesn't work.&lt;/P&gt;

&lt;P&gt;Help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 15:06:58 GMT</pubDate>
    <dc:creator>ecedwards</dc:creator>
    <dc:date>2019-08-05T15:06:58Z</dc:date>
    <item>
      <title>Timechart fillnull with append search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-fillnull-with-append-search/m-p/432585#M123602</link>
      <description>&lt;P&gt;So, I'm trying to come up with a way to compare data from this year and last year into a &lt;CODE&gt;Single Value&lt;/CODE&gt; Graph but I am unable to force the 0 value into the first timechart with it's own date. This is my search query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host=*obe2e*ap* code=NAV7000 
| timechart span=1d dc(confirmationNumber) as "Stats"
| append [search index=* source=*funnel*'step5'  earliest=-1y+1d@h latest=-1y+1d+1h@h | timechart span=1d count as "Stats"] 
| sort _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried adding &lt;CODE&gt;| table _time, Stats | fillnull Stats&lt;/CODE&gt; but due to it already having a value cause by the append search, it won't work. I also tried renaming both fields, the first one into &lt;CODE&gt;Stats2&lt;/CODE&gt; and second one into &lt;CODE&gt;Stats&lt;/CODE&gt; and apply the same concept &lt;CODE&gt;| table _time, Stats, Stats2 | fillnull Stats2&lt;/CODE&gt; and it works but it registers under the same date, and not a different one, therefore the &lt;CODE&gt;Single Value&lt;/CODE&gt; visualization doesn't work.&lt;/P&gt;

&lt;P&gt;Help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 15:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-fillnull-with-append-search/m-p/432585#M123602</guid>
      <dc:creator>ecedwards</dc:creator>
      <dc:date>2019-08-05T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart fillnull with append search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-fillnull-with-append-search/m-p/432586#M123603</link>
      <description>&lt;P&gt;Your logic (using &lt;CODE&gt;dc&lt;/CODE&gt; one place and &lt;CODE&gt;count&lt;/CODE&gt; the other) seems like it is highly likely to be INCORRECT, but, presuming that it is not, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=* host=*obe2e*ap* code=NAV7000) OR (index=* source=*funnel*'step5'  earliest=-1y+1d@h latest=-1y+1d+1h@h)
| timechart span=1d dc(confirmationNumber) AS ThisYear count(eval(source="*funnel*'step5')) AS LastYear
| stats max(*) AS *
| eval diff = ThisYear - LastYear
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Aug 2019 16:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-fillnull-with-append-search/m-p/432586#M123603</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-05T16:13:11Z</dc:date>
    </item>
  </channel>
</rss>

