<?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 Nested Aggregation and Filters in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-and-Filters/m-p/2120110#M91235</link>
    <description>&lt;P&gt;Hello –&lt;/P&gt;
&lt;P&gt;I’m trying to create a calculation which will display for a specific month (Aug-2022). The calculation uses a nested aggregation. It calculates correctly if “Aug-2022” is selected in the Filter pane. However, if “Aug-2022” is removed from the filter, the calculation results in 0 (zero). Any idea what I am doing wrong? Thanks.&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;YearMonth = {'Aug-2022'}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Aggr(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;YearMonth = {'Aug-2022'}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FullDate = date(Min({&amp;lt;YearMonth=,COMR_LATENESS_FLAG_LABEL= {'Late'} &amp;gt;} TOTAL &amp;lt;CASE_AER_NUMBER_VERSION&amp;gt; date#(FullDate,'DD-MMM-YYYY')&amp;nbsp;&amp;nbsp; ),'DD-MMM-YYYY')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,COMR_PROCESS_POINT, CASE_AER_NUMBER_VERSION, FullDate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ,YearMonth)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 18:11:21 GMT</pubDate>
    <dc:creator>tomdon14</dc:creator>
    <dc:date>2023-09-19T18:11:21Z</dc:date>
    <item>
      <title>Nested Aggregation and Filters</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-and-Filters/m-p/2120110#M91235</link>
      <description>&lt;P&gt;Hello –&lt;/P&gt;
&lt;P&gt;I’m trying to create a calculation which will display for a specific month (Aug-2022). The calculation uses a nested aggregation. It calculates correctly if “Aug-2022” is selected in the Filter pane. However, if “Aug-2022” is removed from the filter, the calculation results in 0 (zero). Any idea what I am doing wrong? Thanks.&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;YearMonth = {'Aug-2022'}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Aggr(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;YearMonth = {'Aug-2022'}&amp;gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(FullDate = date(Min({&amp;lt;YearMonth=,COMR_LATENESS_FLAG_LABEL= {'Late'} &amp;gt;} TOTAL &amp;lt;CASE_AER_NUMBER_VERSION&amp;gt; date#(FullDate,'DD-MMM-YYYY')&amp;nbsp;&amp;nbsp; ),'DD-MMM-YYYY')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,COMR_PROCESS_POINT, CASE_AER_NUMBER_VERSION, FullDate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ,YearMonth)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 18:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-and-Filters/m-p/2120110#M91235</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2023-09-19T18:11:21Z</dc:date>
    </item>
  </channel>
</rss>

