<?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: When should I use Aggr in combination with TOTAL? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834791#M68928</link>
    <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;However if I use Aggr, then wouldn't I get the same result without writing the details after total? For example:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Aggr(NODISTINCT Count(SKU), [Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if w&lt;SPAN&gt;hen you are using two dimensions in the chart, the c&lt;/SPAN&gt;&lt;SPAN&gt;alculation is still respecting the second dimension, I don't understand how the first reply in the below thread could have worked?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Excluding-one-dimension-from-total/m-p/359992" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Excluding-one-dimension-from-total/m-p/359992&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 00:12:46 GMT</pubDate>
    <dc:creator>etiennesan</dc:creator>
    <dc:date>2021-09-09T00:12:46Z</dc:date>
    <item>
      <title>When should I use Aggr in combination with TOTAL?</title>
      <link>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834555#M68906</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have the following situation: I have two dimensions: one being the date, and another a master dimension that is calculated for each products ("SKU"), telling me my inventory status (for example "Overstock").&lt;/P&gt;&lt;P&gt;I want to show for each date, the proportion of products in each inventory status.&lt;/P&gt;&lt;P&gt;I tried doing it with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count(SKU) / Count(Total&amp;lt;[Date]&amp;gt; SKU)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it was not working. What ended up working was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count(SKU) / Aggr(NODISTINCT Count(Total&amp;lt;[Date]&amp;gt; SKU), [Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why that Aggr was needed, anyone could please explain? Could it be related to the fact that my other dimension is a calculated one, also using Aggr?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 08:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834555#M68906</guid>
      <dc:creator>etiennesan</dc:creator>
      <dc:date>2021-09-08T08:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: When should I use Aggr in combination with TOTAL?</title>
      <link>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834592#M68909</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/133610"&gt;@etiennesan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;....I don't understand why that Aggr was needed, anyone could please explain? Could it be related to the fact that my other dimension is a calculated one, also using Aggr?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You are right. When you are using two dimensions in the chart&amp;nbsp; and using&amp;nbsp; &lt;EM&gt;'total &amp;lt;Date&amp;gt;'&lt;/EM&gt; - your calculation is still respecting the second dimension. However, when you are using &lt;EM&gt;'aggr( ... total &amp;lt;Date&amp;gt; .. , Date)'&lt;/EM&gt; , you are explicitly mentioning to consider the Date dimension only for aggregation; and therefore - your second dimension in the chart is disregarded in the calculation part.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 10:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834592#M68909</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-09-08T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: When should I use Aggr in combination with TOTAL?</title>
      <link>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834791#M68928</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;However if I use Aggr, then wouldn't I get the same result without writing the details after total? For example:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Aggr(NODISTINCT Count(SKU), [Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if w&lt;SPAN&gt;hen you are using two dimensions in the chart, the c&lt;/SPAN&gt;&lt;SPAN&gt;alculation is still respecting the second dimension, I don't understand how the first reply in the below thread could have worked?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Excluding-one-dimension-from-total/m-p/359992" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Excluding-one-dimension-from-total/m-p/359992&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 00:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-should-I-use-Aggr-in-combination-with-TOTAL/m-p/1834791#M68928</guid>
      <dc:creator>etiennesan</dc:creator>
      <dc:date>2021-09-09T00:12:46Z</dc:date>
    </item>
  </channel>
</rss>

