<?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: Sum(Aggr((Sum()) returns null in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795086#M64377</link>
    <description>&lt;P&gt;If I use&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;sum(aggr((Sum(t1_amt_HKD000)-sum(t0_amt_HKD000)),GRCA))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I could get the correct number in some fields but others are null.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Mar 2021 03:50:03 GMT</pubDate>
    <dc:creator>43918084</dc:creator>
    <dc:date>2021-03-28T03:50:03Z</dc:date>
    <item>
      <title>Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795069#M64372</link>
      <description>&lt;P&gt;I have below Sum(Aggr((Sum()) aiming to return total of each category within a field [GRCA]&lt;/P&gt;&lt;P&gt;sum(aggr((Sum(t1_amt_HKD000)-sum(t0_amt_HKD000)),GRCA))&lt;/P&gt;&lt;P&gt;But some of the field returns null.&amp;nbsp; Would appreciate some guidance to resolve.&amp;nbsp; Many thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51945iBC5632ACF58781C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795069#M64372</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2021-12-20T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795081#M64373</link>
      <description>&lt;P&gt;Because each of the other reference fields is not included in the Aggr grouping parameters, it is not aggregating with reference to them. This can create extremely inconsistent results. Make sure to include all the relevant dimensions in the aggr statement, you can include more than one.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 03:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795081#M64373</guid>
      <dc:creator>zwilson_borg</dc:creator>
      <dc:date>2021-03-28T03:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795082#M64374</link>
      <description>&lt;P&gt;Thank you very much.&amp;nbsp; But if I include other reference fields, then I will not have the total by GRCA variance.&amp;nbsp; The GRCA column on the left table will become the same as the 3rd column. This is because my table on the left hand side is only top 50. The table on the right hand side is the GRCA variance by category of whole population.&lt;/P&gt;&lt;P&gt;I have tried using Sum (Total &amp;lt;GRCA&amp;gt; Var HKD000)&amp;nbsp; but it still does not work.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 03:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795082#M64374</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2021-03-28T03:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795083#M64375</link>
      <description>&lt;P&gt;Have you tried Sum(All &amp;lt;GRCA&amp;gt; Var HKD0000)?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 03:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795083#M64375</guid>
      <dc:creator>zwilson_borg</dc:creator>
      <dc:date>2021-03-28T03:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795085#M64376</link>
      <description>&lt;P&gt;Thanks a lot for your immediate guidance.&amp;nbsp; I have tried and the number is wrong.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51947i093C6E26AC0FAE63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 03:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795085#M64376</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2021-03-28T03:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795086#M64377</link>
      <description>&lt;P&gt;If I use&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;sum(aggr((Sum(t1_amt_HKD000)-sum(t0_amt_HKD000)),GRCA))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I could get the correct number in some fields but others are null.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 03:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795086#M64377</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2021-03-28T03:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr((Sum()) returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795119#M64378</link>
      <description>&lt;P&gt;&amp;nbsp;I ended up adding another script to get the GRCA&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;GRCA,&lt;BR /&gt;sum (Var_HKD000) as GRCAVAR&lt;BR /&gt;resident [New] Group by GRCA;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 13:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Sum-returns-null/m-p/1795119#M64378</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2021-03-28T13:24:57Z</dc:date>
    </item>
  </channel>
</rss>

