<?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 Analyis to replace isnull in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analyis-to-replace-isnull/m-p/211759#M502949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been on a crusade to eliminate if statements in expressions.&lt;/P&gt;&lt;P&gt;I have the below statement that I don't know if Set would help.&lt;/P&gt;&lt;P&gt;If anyone has thoughts I would appreciate it.&lt;/P&gt;&lt;P&gt;Sum ([ A ]) - sum(if(IsNull([ B] ),[ C ],[ B ]))&lt;/P&gt;&lt;P&gt;Basically this subtracts B from A unless B is null then is uses C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 14:54:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-21T14:54:55Z</dc:date>
    <item>
      <title>Set Analyis to replace isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analyis-to-replace-isnull/m-p/211759#M502949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been on a crusade to eliminate if statements in expressions.&lt;/P&gt;&lt;P&gt;I have the below statement that I don't know if Set would help.&lt;/P&gt;&lt;P&gt;If anyone has thoughts I would appreciate it.&lt;/P&gt;&lt;P&gt;Sum ([ A ]) - sum(if(IsNull([ B] ),[ C ],[ B ]))&lt;/P&gt;&lt;P&gt;Basically this subtracts B from A unless B is null then is uses C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 14:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analyis-to-replace-isnull/m-p/211759#M502949</guid>
      <dc:creator />
      <dc:date>2010-09-21T14:54:55Z</dc:date>
    </item>
    <item>
      <title>AW:Set Analyis to replace isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analyis-to-replace-isnull/m-p/211760#M502950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pshicks,&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;(isnull(B)*-1)*C + (isnull(B)+1)*B&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But if B is null you can't calculate with it: x+null = null&lt;/P&gt;&lt;P&gt;You only can calculate with independent Values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;(isnull(A)*-1)*C + (isnull(A)+1)*B&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This means if A is Null sum(C) else sum(B)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun&lt;/P&gt;&lt;P&gt;Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 15:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analyis-to-replace-isnull/m-p/211760#M502950</guid>
      <dc:creator />
      <dc:date>2010-09-21T15:45:18Z</dc:date>
    </item>
  </channel>
</rss>

