<?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 - NULL Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143712#M505903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think you need to calculate sum of all flag minus flags with orders :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;sum({1-&amp;lt;OrderNumber&amp;gt;=0&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;or sum(Flag) -sum({&amp;lt;OrderNumber&amp;gt;=0&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;It returns 3 (10-7) with this script :&lt;/P&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;test:&lt;BR /&gt;load&lt;BR /&gt; recno() as Key,&lt;BR /&gt; if (mod(recno(),3)=0,null(),recno()) as OrderNumber,&lt;BR /&gt; 1 as Flag&lt;BR /&gt;autogenerate(10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2009 01:50:42 GMT</pubDate>
    <dc:creator>yblake</dc:creator>
    <dc:date>2009-05-09T01:50:42Z</dc:date>
    <item>
      <title>Set Analysis - NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143710#M505901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to use set - expressions to query for null values?&lt;/P&gt;&lt;P&gt;For example, I would like to express the following formula:&lt;/P&gt;&lt;P&gt;sum ( if (isnull(OrderNumber), Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gerald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 19:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143710#M505901</guid>
      <dc:creator />
      <dc:date>2009-05-08T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143711#M505902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it's as simple as this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;OrderNumber={}&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;That should give you the set of all selected records that are not associated with OrderNumber, which I think is the same as saying you want all selected records where the OrderNumber is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 00:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143711#M505902</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-09T00:25:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143712#M505903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think you need to calculate sum of all flag minus flags with orders :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;sum({1-&amp;lt;OrderNumber&amp;gt;=0&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;or sum(Flag) -sum({&amp;lt;OrderNumber&amp;gt;=0&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;It returns 3 (10-7) with this script :&lt;/P&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;test:&lt;BR /&gt;load&lt;BR /&gt; recno() as Key,&lt;BR /&gt; if (mod(recno(),3)=0,null(),recno()) as OrderNumber,&lt;BR /&gt; 1 as Flag&lt;BR /&gt;autogenerate(10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 01:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143712#M505903</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-05-09T01:50:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143713#M505904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 13:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-NULL-Values/m-p/143713#M505904</guid>
      <dc:creator />
      <dc:date>2009-05-09T13:17:16Z</dc:date>
    </item>
  </channel>
</rss>

