<?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 Re: Convert Null to zero in Aggr when all the rows has been excluded by set expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128090#M8975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niclas!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it without success. I think it's perhaps due to a little bug in Aggr. Could be that Aggr is creating a row for 10/3/2010 (since there is data); but has nothing to sum because al the rows for 10/3/2010 been excluded by the 'SetExpression' (there are no rows this day satisfaying ERROR={0}); and this problem would escape to Alt scope being executed during the 'expr' evaluation. Could be? ¯\_(ツ)_/¯&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2018 11:57:29 GMT</pubDate>
    <dc:creator>virilo_tejedor</dc:creator>
    <dc:date>2018-08-16T11:57:29Z</dc:date>
    <item>
      <title>Convert Null to zero in Aggr when all the rows has been excluded by set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128086#M8971</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;I'm using this expression to calculate the cumulative sum:&lt;/P&gt;&lt;P&gt;RangeSum( &lt;BR /&gt; Aggr(&lt;BR /&gt;&amp;nbsp; Rangesum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; above( Sum({$&amp;lt;ERROR={0},BALANCE_GROUP={*}-{1}&amp;gt;}[BALANCE_FACTOR]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMaxDays&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; , BALANCE_GROUP_DESC , (FEC_PETICION.autoCalendar.Date, (NUMERIC))&lt;BR /&gt; )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the expected value and what I'm getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="failure-when-100%-errors.png" class="jive-image image-1" src="/legacyfs/online/210544_failure-when-100%-errors.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I've a problem, since I'm excluing rows where ERROR&amp;lt;&amp;gt;0 and grouping by dates.&lt;/P&gt;&lt;P&gt;nd when all the rows from the same date are excluded by the set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think QlikSense is creating a row in Agg for 10/3/2010 (since there is data);&lt;BR /&gt;but has nothing to sum because al the rows has been excluded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="failure-when-100%-errors-new-data.png" class="jive-image image-2" src="/legacyfs/online/210551_failure-when-100%-errors-new-data.png" style="width: 620px; height: 258px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried configuring the chart with Additional Modules &amp;gt; Suppress ¿null/zero? values? (It's translated into Spanish as "Suprimir valores cero")&lt;BR /&gt;It does the job for 10/3/2010 (null), but also supress real zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to add a constant zero to the list of values being aggregated by Aggr?&lt;BR /&gt;Something like [0 + above(...)]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0] --&amp;gt; [0+0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0+2] --&amp;gt; [0+0+2]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0+2+1] --&amp;gt; [0+0+2+1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0+2+1+3] --&amp;gt; [0+0+2+1+3]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0+2+1+3-1] --&amp;gt; [0+0+2+1+3-1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Null]&amp;nbsp; --&amp;gt; [0+Null]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I help QlikSense to realize that there is no change for cumulative sum in 10/3/2010?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Virilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128086#M8971</guid>
      <dc:creator>virilo_tejedor</dc:creator>
      <dc:date>2018-08-10T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Null to zero in Aggr when all the rows has been excluded by set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128087#M8972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Aggr(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; Rangesum(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; Above(Sum({$&amp;lt;ERROR={0},BALANCE_GROUP={*}-{1}&amp;gt;}[BALANCE_FACTOR]) &lt;SPAN style="color: #ff0000;"&gt;+ Sum({1} 0)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMaxDays&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; , BALANCE_GROUP_DESC , (FEC_PETICION.autoCalendar.Date, (NUMERIC))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128087#M8972</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-10T12:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Null to zero in Aggr when all the rows has been excluded by set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128088#M8973</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;I prefer to use the Alt() function when dealing with undesired null values;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(&lt;BR /&gt;&amp;nbsp; Rangesum(&lt;BR /&gt;&amp;nbsp; Above(Sum({$&amp;lt;ERROR={0},BALANCE_GROUP={*}-{1}&amp;gt;}&lt;EM&gt;&lt;STRONG&gt;Alt([BALANCE_FACTOR],0)&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMaxDays&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; , BALANCE_GROUP_DESC , (FEC_PETICION.autoCalendar.Date, (NUMERIC))&lt;BR /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128088#M8973</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-08-10T12:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Null to zero in Aggr when all the rows has been excluded by set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128089#M8974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;The problem is solved by adding this zero constant&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 11:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128089#M8974</guid>
      <dc:creator>virilo_tejedor</dc:creator>
      <dc:date>2018-08-16T11:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Null to zero in Aggr when all the rows has been excluded by set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128090#M8975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niclas!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it without success. I think it's perhaps due to a little bug in Aggr. Could be that Aggr is creating a row for 10/3/2010 (since there is data); but has nothing to sum because al the rows for 10/3/2010 been excluded by the 'SetExpression' (there are no rows this day satisfaying ERROR={0}); and this problem would escape to Alt scope being executed during the 'expr' evaluation. Could be? ¯\_(ツ)_/¯&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 11:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/128090#M8975</guid>
      <dc:creator>virilo_tejedor</dc:creator>
      <dc:date>2018-08-16T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Null to zero in Aggr when all the rows has been excluded by set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/1754690#M58185</link>
      <description>&lt;P&gt;Hi Sunny I'm trying to do something similar with a pivot table.&amp;nbsp; I have the following expression that works except for when there is no data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=RangeSum(Before(Sum({&amp;lt; IsCurrentMTD = {'1'} &amp;gt;} [SL1]), 0, ColumnNo()))/&lt;BR /&gt;RangeSum(Before(Sum({&amp;lt; IsCurrentMTD = {'1'} &amp;gt;} INTANS), 0, ColumnNo()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add the sum({1} 0)&amp;nbsp; but I'm not getting the desired result&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=AGGR(RangeSum(Before(Sum({&amp;lt; IsCurrentMTD = {'1'} &amp;gt;} [SL1]) + sum({1} 0), 0, ColumnNo()))/&lt;BR /&gt;RangeSum(Before(Sum({&amp;lt; IsCurrentMTD = {'1'} &amp;gt;} INTANS) +sum({1} 0), 0, ColumnNo())), Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dleota_0-1603309515809.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42765iB0DB3EA921EFB110/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dleota_0-1603309515809.png" alt="dleota_0-1603309515809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 19:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-Null-to-zero-in-Aggr-when-all-the-rows-has-been-excluded/m-p/1754690#M58185</guid>
      <dc:creator>danaleota1</dc:creator>
      <dc:date>2020-10-21T19:45:34Z</dc:date>
    </item>
  </channel>
</rss>

