<?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 ITSI distinct count KPI: 0 vs. NULL values? in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403701#M869</link>
    <description>&lt;P&gt;I have simple KPI giving a distinct count of a USER_ID field. Assume USER_ID exists for 100% of logged events. Within ITSI, the KPI is configured to "fill gaps in data" with NULL values and an Unknown threshold level.&lt;/P&gt;

&lt;P&gt;During a time when no events were logged, the KPI maintained a 0 value (not the NULL value). Is this a bug, or some kind of expected behavior? Any suggestions on a workaround?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:04:13 GMT</pubDate>
    <dc:creator>curtismcginity</dc:creator>
    <dc:date>2020-09-30T00:04:13Z</dc:date>
    <item>
      <title>ITSI distinct count KPI: 0 vs. NULL values?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403701#M869</link>
      <description>&lt;P&gt;I have simple KPI giving a distinct count of a USER_ID field. Assume USER_ID exists for 100% of logged events. Within ITSI, the KPI is configured to "fill gaps in data" with NULL values and an Unknown threshold level.&lt;/P&gt;

&lt;P&gt;During a time when no events were logged, the KPI maintained a 0 value (not the NULL value). Is this a bug, or some kind of expected behavior? Any suggestions on a workaround?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403701#M869</guid>
      <dc:creator>curtismcginity</dc:creator>
      <dc:date>2020-09-30T00:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI distinct count KPI: 0 vs. NULL values?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403702#M870</link>
      <description>&lt;P&gt;@curtismcginity - I think if you set that to NULL value it shows the discontinued chart.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403702#M870</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-11T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI distinct count KPI: 0 vs. NULL values?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403703#M871</link>
      <description>&lt;P&gt;I have the same issue. I want to continue with the latest available value but the result is 0. If you run, investigate and expand the generated search you see ITSI is performing a: | stats dc(USER_ID) and with a macro it stores  the result in a cache. &lt;/P&gt;

&lt;P&gt;Statistically, a result of no occurences will result in the value 0. &lt;BR /&gt;
I'm trying with streamstats, latest/earliest and such but no luck yet. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403703#M871</guid>
      <dc:creator>RickvdIJ</dc:creator>
      <dc:date>2019-08-13T10:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI distinct count KPI: 0 vs. NULL values?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403704#M872</link>
      <description>&lt;P&gt;I have the exact opposite problem (but the same).&lt;BR /&gt;
I have it set to show custom value 0 but it just shows Null.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 15:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403704#M872</guid>
      <dc:creator>logankinman99</dc:creator>
      <dc:date>2019-11-01T15:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI distinct count KPI: 0 vs. NULL values?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403705#M873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If you do a (distinct)count of something and there are no matching events, the result is 0.&lt;BR /&gt;
This is expected behavior imho. &lt;/P&gt;

&lt;P&gt;The resulting search is: | stats dc(USER_ID).&lt;/P&gt;

&lt;P&gt;Perhaps you can create a counter field, where the result of an existing field is 0 or more. And without events this field will not be there? &lt;BR /&gt;
eval counterfield=if(USER_ID=="",1,0) &lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 10:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/403705#M873</guid>
      <dc:creator>RickvdIJ</dc:creator>
      <dc:date>2019-11-08T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI distinct count KPI: 0 vs. NULL values?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/584596#M2459</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;If you do a (distinct)count of something and there are no matching events, the result is 0.&lt;BR /&gt;This is expected behavior imho.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Actually there's a very important distinction to make here. Suppose I ask you, "&lt;STRONG&gt;How many balls are inside the box in the next room?&lt;/STRONG&gt;" Consider two scenarios:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You walk into the next room, see the box, look inside, and see nothing.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;You walk into the next room and see nothing. No box, no balls; nothing.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;These are clearly not the same scenario, and so I would expect different behavior imho. Intuitively, a human would likely respond along the lines of&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"Zero!"&lt;/LI&gt;&lt;LI&gt;"Uhm... there&amp;nbsp;&lt;EM&gt;is&amp;nbsp;&lt;/EM&gt;no box!"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The fundamental issue is that any feasible response to a question implicitly validates the premise(s) of the question. In case 2, we need Splunk to return a result indicating our premise is false.&amp;nbsp;Indeed, the "null value" config exists, at least in part, to make this distinction... assuming it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 21:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-distinct-count-KPI-0-vs-NULL-values/m-p/584596#M2459</guid>
      <dc:creator>curtismcginity</dc:creator>
      <dc:date>2022-02-10T21:29:27Z</dc:date>
    </item>
  </channel>
</rss>

