<?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 How to group null values in set analysis as an expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-group-null-values-in-set-analysis-as-an-expression/m-p/358590#M494969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this post here, &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/172382#172382"&gt;http://community.qlik.com/message/172382#172382&lt;/A&gt;&lt;SPAN&gt; but its not answering my question, more a workaround.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I group null values in set analysis as an expression so I can be certain that all null values are being treated as a set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data that has values which I can group into various sets and then the balance is null and I want to group that as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When its not a null value (e.g. the category is M then my code looks like this, and this works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;wcGroup={M}&amp;gt;}smProd)&amp;nbsp; / sum({$&amp;lt;wcGroup={M}&amp;gt;}qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the wcGroup field contents isnt M but its null how can I manage the set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;wcGroup={""}&amp;gt;}smProd) / sum({$&amp;lt;wcGroup={""}&amp;gt;}qty) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;wcGroup={null}&amp;gt;}smProd) / sum({$&amp;lt;wcGroup={null}&amp;gt;}qty) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;IsNull(wcGroup)&amp;gt;}smProd) / sum({$&amp;lt;wcGroup={""}&amp;gt;}qty)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing is correct syntax-wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within set analysis how do I manage null values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 16:32:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-19T16:32:03Z</dc:date>
    <item>
      <title>How to group null values in set analysis as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-group-null-values-in-set-analysis-as-an-expression/m-p/358590#M494969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this post here, &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/172382#172382"&gt;http://community.qlik.com/message/172382#172382&lt;/A&gt;&lt;SPAN&gt; but its not answering my question, more a workaround.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I group null values in set analysis as an expression so I can be certain that all null values are being treated as a set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data that has values which I can group into various sets and then the balance is null and I want to group that as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When its not a null value (e.g. the category is M then my code looks like this, and this works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;wcGroup={M}&amp;gt;}smProd)&amp;nbsp; / sum({$&amp;lt;wcGroup={M}&amp;gt;}qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the wcGroup field contents isnt M but its null how can I manage the set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;wcGroup={""}&amp;gt;}smProd) / sum({$&amp;lt;wcGroup={""}&amp;gt;}qty) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;wcGroup={null}&amp;gt;}smProd) / sum({$&amp;lt;wcGroup={null}&amp;gt;}qty) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;IsNull(wcGroup)&amp;gt;}smProd) / sum({$&amp;lt;wcGroup={""}&amp;gt;}qty)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing is correct syntax-wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within set analysis how do I manage null values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 16:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-group-null-values-in-set-analysis-as-an-expression/m-p/358590#M494969</guid>
      <dc:creator />
      <dc:date>2012-03-19T16:32:03Z</dc:date>
    </item>
    <item>
      <title>How to group null values in set analysis as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-group-null-values-in-set-analysis-as-an-expression/m-p/358591#M494970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried this myself, but I suspect that if you include the following statements in the script, you could test for a NULL value with normal SET syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NullAsValue "wcGroup";&lt;/P&gt;&lt;P&gt;set NullValue='&amp;lt;NULL&amp;gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 16:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-group-null-values-in-set-analysis-as-an-expression/m-p/358591#M494970</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-03-19T16:53:11Z</dc:date>
    </item>
  </channel>
</rss>

