<?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: SUM Distinct, Avoid Nulls with Criteria for DataSubset in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672538#M506802</link>
    <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(DISTINCT {$&amp;lt;[Metric Name] = {'Proprietary Metric'}, [Latest Month] = {'Y'}, [Metric_Value] *= {"*"}&amp;gt;} [Metric_Value])&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 05 Feb 2020 13:36:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-02-05T13:36:36Z</dc:date>
    <item>
      <title>SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672534#M506801</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Surprised Qlik formulas do not handle zero and null very well (or as I wish).&lt;BR /&gt;One situation where I miss Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppress Null checkbox is not working for me.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My current formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(DISTINCT{$&amp;lt;[Metric Name]={'Proprietary Metric'},[Latest Month]={'Y'}&amp;gt;}[Metric_Value])&lt;BR /&gt;&lt;BR /&gt;Data and chart in attached image.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;2019 and 2020 have genuine zero values (Orange Box).&lt;BR /&gt;2016, 2017, 2021-3 should be null on chart, but instead are displayed as zero.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Searched for formulas, but not finding an exact of If IsNull that also has specifications for a subset of data where I am specifying two criteria (in my case a particular metric and month).&lt;BR /&gt;&lt;BR /&gt;Any recommendations?&lt;BR /&gt;&lt;BR /&gt;Thank you kindly.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672534#M506801</guid>
      <dc:creator>kgordish</dc:creator>
      <dc:date>2024-11-16T19:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672538#M506802</link>
      <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(DISTINCT {$&amp;lt;[Metric Name] = {'Proprietary Metric'}, [Latest Month] = {'Y'}, [Metric_Value] *= {"*"}&amp;gt;} [Metric_Value])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672538#M506802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-05T13:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672557#M506803</link>
      <description>&lt;P&gt;Still not functioning properly.&amp;nbsp;&lt;BR /&gt;In need of another angle of attack.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tried changing Null Values to read Null using&amp;nbsp;SET NullValue = 'Null'; NULLASVALUE Metric_Value;&lt;BR /&gt;Qlik is still showing null as zero.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672557#M506803</guid>
      <dc:creator>kgordish</dc:creator>
      <dc:date>2020-02-05T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672591#M506804</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Avg({$&amp;lt;[Metric Name] = {'Proprietary Metric'}, [Latest Month] = {'Y'}&amp;gt;} [Metric_Value]),

Sum(DISTINCT {$&amp;lt;[Metric Name] = {'Proprietary Metric'}, [Latest Month] = {'Y'}&amp;gt;} [Metric_Value])

)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672591#M506804</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-05T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672622#M506805</link>
      <description>&lt;P&gt;I'm not sure that Qlik behaved here really differently from Excel:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update: screenshot is attached&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What do you observed hasn't much to do with the loaded data (null, empty, missing) else with the fact that you create with your chart a new table - and in there context some values could become NULL. Within a tablebox they would be displayed as NULL respecitively the '-' as optical replace of it. But if you used an aggregation like sum() the result will be 0.&lt;/P&gt;&lt;P&gt;If you want to avoid it you will probably need to query for the result and then changing it, maybe with something like:&lt;/P&gt;&lt;P&gt;if(sum(value) = 0, null(), sum(value))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672622#M506805</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-02-05T16:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672641#M506806</link>
      <description>&lt;P&gt;Tried suggested formulas.&lt;BR /&gt;Either nulls not showing, but also zero is not showing as well.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Non-ideal work around.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="inherit"&gt;I converted zero to 0.001 in dataset and changed number structure to Integer.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Has to be a better solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Wish I could send you a gift card for this "teaching moment".&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Attached Qlik File.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 17:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672641#M506806</guid>
      <dc:creator>kgordish</dc:creator>
      <dc:date>2020-02-05T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672902#M506807</link>
      <description>&lt;P&gt;What is a difference between Attempt 2 and Attempt 3? They look identical except the formatting for the symbol location&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28043iAD1881239D62E7BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672902#M506807</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672956#M506808</link>
      <description>&lt;P&gt;Sunny Your formula was helpful. It helped solve my requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must have copied the same object twice by accident.&amp;nbsp; Accepted your previous solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672956#M506808</guid>
      <dc:creator>kgordish</dc:creator>
      <dc:date>2020-02-06T13:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: SUM Distinct, Avoid Nulls with Criteria for DataSubset</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672967#M506809</link>
      <description>&lt;P&gt;Very cool.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-Distinct-Avoid-Nulls-with-Criteria-for-DataSubset/m-p/1672967#M506809</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T13:54:35Z</dc:date>
    </item>
  </channel>
</rss>

