<?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 Null to Zero in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159359#M34040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably wrap the whole thing in a rangesum() function. The rangesum() function treats any null parameters like they are zero. With one parameter, if it is null, I'd expect it to return 0 like you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Jan 2011 02:44:36 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-01-08T02:44:36Z</dc:date>
    <item>
      <title>Null to Zero in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159358#M34039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The below expression will return null for some of the rows. I need it to be 0, instead of null. Is there any efficient way of achieving this scenario, instead of using ISNULL function.&lt;/P&gt;&lt;P&gt;=IF(vMas=$(vMat),&lt;BR /&gt; SUM(AGGR(ONLY({&amp;lt;A_FLAG={'1'}&amp;gt;+&amp;lt;B_FLAG={'1'}&amp;gt;+&amp;lt;C_FLAG={'1'}&amp;gt;}TRADE), SK, PER)) /&lt;BR /&gt; SUM(AGGR(ONLY({&amp;lt;A_FLAG={'1'}&amp;gt;+&amp;lt;B_FLAG={'1'}&amp;gt;+&amp;lt;C_FLAG={'1'}&amp;gt;}VOLUME), SK, PER)))&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 11:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159358#M34039</guid>
      <dc:creator />
      <dc:date>2011-01-07T11:02:25Z</dc:date>
    </item>
    <item>
      <title>Null to Zero in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159359#M34040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably wrap the whole thing in a rangesum() function. The rangesum() function treats any null parameters like they are zero. With one parameter, if it is null, I'd expect it to return 0 like you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2011 02:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159359#M34040</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-08T02:44:36Z</dc:date>
    </item>
    <item>
      <title>Null to Zero in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159360#M34041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please try this if u dont find any way to implement, it will sure work.&lt;/P&gt;&lt;P&gt;= if(&lt;/P&gt;&lt;P&gt;(IF(vMas=$(vMat),&lt;BR /&gt; SUM(AGGR(ONLY({&amp;lt;A_FLAG={'1'}&amp;gt;+&amp;lt;B_FLAG={'1'}&amp;gt;+&amp;lt;C_FLAG={'1'}&amp;gt;}TRADE), SK, PER)) /&lt;BR /&gt; SUM(AGGR(ONLY({&amp;lt;A_FLAG={'1'}&amp;gt;+&amp;lt;B_FLAG={'1'}&amp;gt;+&amp;lt;C_FLAG={'1'}&amp;gt;}VOLUME), SK, PER)))&lt;/P&gt;&lt;P&gt;)&amp;lt;1,'0',IF(vMas=$(vMat),&lt;BR /&gt; SUM(AGGR(ONLY({&amp;lt;A_FLAG={'1'}&amp;gt;+&amp;lt;B_FLAG={'1'}&amp;gt;+&amp;lt;C_FLAG={'1'}&amp;gt;}TRADE), SK, PER)) /&lt;BR /&gt; SUM(AGGR(ONLY({&amp;lt;A_FLAG={'1'}&amp;gt;+&amp;lt;B_FLAG={'1'}&amp;gt;+&amp;lt;C_FLAG={'1'}&amp;gt;}VOLUME), SK, PER)))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2011 09:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-to-Zero-in-Set-Analysis/m-p/159360#M34041</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-01-08T09:58:10Z</dc:date>
    </item>
  </channel>
</rss>

