<?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 Set analysis based on null value fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-null-value-fields/m-p/225255#M503194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Currently I am looking for a method to filter selections on null value fields with set analysis.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Test:&lt;BR /&gt;load&lt;BR /&gt; RowNo() as ID,&lt;BR /&gt; if(Product = 'C', '', if(Product = 'E', Null(), Product)) as Product,&lt;BR /&gt; Sales&lt;BR /&gt;inline&lt;BR /&gt;[&lt;BR /&gt;Product, Sales&lt;BR /&gt;A, 100&lt;BR /&gt;A, 200&lt;BR /&gt;B, 300&lt;BR /&gt;C, 400&lt;BR /&gt;C, 400&lt;BR /&gt;D, 500&lt;BR /&gt;E, 600&lt;BR /&gt;E, 700&lt;BR /&gt;F, 800&lt;BR /&gt;G, 900&lt;BR /&gt;G, 1000&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1505_sourceID:1505" /&gt;&lt;/P&gt;&lt;P&gt;Question: "What is the sum of product with &lt;B&gt;NULL&lt;/B&gt; value (not empty)?"&lt;/P&gt;&lt;P&gt;In my sample, total sum is 5900, empty sum 800, null sum 1300.&lt;/P&gt;&lt;P&gt;I have tried some expressions, but all failed. Finally I got it from another post "http://community.qlik.com/forums/t/16384.aspx".&lt;/P&gt;&lt;P&gt;"Sum({1-&amp;lt;Product&lt;B&gt;&amp;gt;0&lt;/B&gt;&amp;gt;} Sales)" AND "Sum({1-&amp;lt;Product={*}&amp;gt;} Sales)" both work.&lt;/P&gt;&lt;P&gt;I also tried some other expressions.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1506_sourceID:1506" /&gt;&lt;/P&gt;&lt;P&gt;But as I know, we normally use SA like this: "Sum({&amp;lt;Product=&lt;B&gt;{"&lt;/B&gt;&amp;gt;0&lt;B&gt;"}&lt;/B&gt;&amp;gt;} Sales)". Can we use the "&amp;gt;" or "&amp;lt;" directly after the filed "Product"? If the answer is "YES", why it does not work on the filter "ID&amp;gt;100"?&lt;/P&gt;&lt;P&gt;Can anyone explain why? Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Apr 2010 07:26:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-27T07:26:27Z</dc:date>
    <item>
      <title>Set analysis based on null value fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-null-value-fields/m-p/225255#M503194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Currently I am looking for a method to filter selections on null value fields with set analysis.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Test:&lt;BR /&gt;load&lt;BR /&gt; RowNo() as ID,&lt;BR /&gt; if(Product = 'C', '', if(Product = 'E', Null(), Product)) as Product,&lt;BR /&gt; Sales&lt;BR /&gt;inline&lt;BR /&gt;[&lt;BR /&gt;Product, Sales&lt;BR /&gt;A, 100&lt;BR /&gt;A, 200&lt;BR /&gt;B, 300&lt;BR /&gt;C, 400&lt;BR /&gt;C, 400&lt;BR /&gt;D, 500&lt;BR /&gt;E, 600&lt;BR /&gt;E, 700&lt;BR /&gt;F, 800&lt;BR /&gt;G, 900&lt;BR /&gt;G, 1000&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1505_sourceID:1505" /&gt;&lt;/P&gt;&lt;P&gt;Question: "What is the sum of product with &lt;B&gt;NULL&lt;/B&gt; value (not empty)?"&lt;/P&gt;&lt;P&gt;In my sample, total sum is 5900, empty sum 800, null sum 1300.&lt;/P&gt;&lt;P&gt;I have tried some expressions, but all failed. Finally I got it from another post "http://community.qlik.com/forums/t/16384.aspx".&lt;/P&gt;&lt;P&gt;"Sum({1-&amp;lt;Product&lt;B&gt;&amp;gt;0&lt;/B&gt;&amp;gt;} Sales)" AND "Sum({1-&amp;lt;Product={*}&amp;gt;} Sales)" both work.&lt;/P&gt;&lt;P&gt;I also tried some other expressions.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1506_sourceID:1506" /&gt;&lt;/P&gt;&lt;P&gt;But as I know, we normally use SA like this: "Sum({&amp;lt;Product=&lt;B&gt;{"&lt;/B&gt;&amp;gt;0&lt;B&gt;"}&lt;/B&gt;&amp;gt;} Sales)". Can we use the "&amp;gt;" or "&amp;lt;" directly after the filed "Product"? If the answer is "YES", why it does not work on the filter "ID&amp;gt;100"?&lt;/P&gt;&lt;P&gt;Can anyone explain why? Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 07:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-null-value-fields/m-p/225255#M503194</guid>
      <dc:creator />
      <dc:date>2010-04-27T07:26:27Z</dc:date>
    </item>
    <item>
      <title>Set analysis based on null value fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-null-value-fields/m-p/225256#M503195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, your table shows all nulls for the lower 8 formulas.&lt;BR /&gt;I am using 9.00.7119.4 64 bit&lt;/P&gt;&lt;P&gt;Had once a similar issue and reveived the following formula for ignoring nulls:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product -= {}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;which shows correct as 4600&lt;/P&gt;&lt;P&gt;however, using&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product = {}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;results in 0 which I can not understand.&lt;/P&gt;&lt;P&gt;For your other formulas I have not seen any example where you could limit on greater than or less than and I assume it throws an error, do not know however how we can see that.&lt;/P&gt;&lt;P&gt;Not much help from me but an interesting example, I hope some more comments come in&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 10:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-null-value-fields/m-p/225256#M503195</guid>
      <dc:creator />
      <dc:date>2010-04-27T10:01:39Z</dc:date>
    </item>
  </channel>
</rss>

