<?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 Aggreagtion in qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842191#M69731</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have below visual with drill down dimension:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_2-1633436695755.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63398iEFCDA1B30A250723/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_2-1633436695755.png" alt="Aspiring_Developer_2-1633436695755.png" /&gt;&lt;/span&gt;&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="Aspiring_Developer_3-1633436905058.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63399iABE6CF6EC82CF511/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_3-1633436905058.png" alt="Aspiring_Developer_3-1633436905058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expression :-&lt;/P&gt;&lt;P&gt;1) %input comppletion&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([User.Divison Name])&amp;gt;0,(sum(aggr((Sum({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;} NB_HOURS)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(max({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;}Real_ActualDays)*8)),[Person Name])) /count([Person Name])),&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;GetSelectedCount([User.Department Name])&amp;gt;0 ,(Sum({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;} NB_HOURS)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(max({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;}Real_ActualDays)*8)),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(SUM(AGGR(sum(aggr(Sum({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;} NB_HOURS)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(max({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;}Real_ActualDays)*8),[Person Name])) /count([Person Name]),[User.Department Name])))/COUNT( distinct[User.Department Name])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;--&amp;gt;The value I see for Clean Energy System is 6.6% (0.9 + 7.5+24.4=32.8 , now 32.8/5 =&amp;gt; 6.56 -- &amp;gt; 6.6 % ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt;When i click on it CES, it expands and the sum of all departments coming under this division is calculated&amp;nbsp; i.e 32.8 and further divided with count of records i.e 5.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_5-1633437202778.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63401i7A31044E0DA7ED63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_5-1633437202778.png" alt="Aspiring_Developer_5-1633437202778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The calculation is working fine for first row, but when i check it for second row record z, it gives wrong value:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_6-1633437402655.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63404i91D571C72DFA0098/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_6-1633437402655.png" alt="Aspiring_Developer_6-1633437402655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The correct value should be :-(0.0+0.0+23.8= 23.8, further 23.8/3=&amp;gt;7.9% but in the above table my value is coming 0.0%&lt;/P&gt;&lt;P&gt;When we click on group, it should show the sum of values coming under the Group division divided by the number of records.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_7-1633437479063.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63405i8ECF5D30A5FF94AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_7-1633437479063.png" alt="Aspiring_Developer_7-1633437479063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me ? I am not able to understand why it is working fine for first record and not for the remaining ?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 15:00:19 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2021-10-05T15:00:19Z</dc:date>
    <item>
      <title>Aggreagtion in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842191#M69731</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have below visual with drill down dimension:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_2-1633436695755.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63398iEFCDA1B30A250723/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_2-1633436695755.png" alt="Aspiring_Developer_2-1633436695755.png" /&gt;&lt;/span&gt;&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="Aspiring_Developer_3-1633436905058.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63399iABE6CF6EC82CF511/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_3-1633436905058.png" alt="Aspiring_Developer_3-1633436905058.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expression :-&lt;/P&gt;&lt;P&gt;1) %input comppletion&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([User.Divison Name])&amp;gt;0,(sum(aggr((Sum({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;} NB_HOURS)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(max({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;}Real_ActualDays)*8)),[Person Name])) /count([Person Name])),&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;GetSelectedCount([User.Department Name])&amp;gt;0 ,(Sum({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;} NB_HOURS)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(max({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;}Real_ActualDays)*8)),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(SUM(AGGR(sum(aggr(Sum({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;} NB_HOURS)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(max({&amp;lt;INPUT_DATE = {"&amp;gt;=$(=Date(MonthStart(Max([INPUT_DATE]))))&amp;lt;=$(=Date(Max([INPUT_DATE])))"}&amp;gt;}Real_ActualDays)*8),[Person Name])) /count([Person Name]),[User.Department Name])))/COUNT( distinct[User.Department Name])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;--&amp;gt;The value I see for Clean Energy System is 6.6% (0.9 + 7.5+24.4=32.8 , now 32.8/5 =&amp;gt; 6.56 -- &amp;gt; 6.6 % ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt;When i click on it CES, it expands and the sum of all departments coming under this division is calculated&amp;nbsp; i.e 32.8 and further divided with count of records i.e 5.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_5-1633437202778.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63401i7A31044E0DA7ED63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_5-1633437202778.png" alt="Aspiring_Developer_5-1633437202778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The calculation is working fine for first row, but when i check it for second row record z, it gives wrong value:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_6-1633437402655.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63404i91D571C72DFA0098/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_6-1633437402655.png" alt="Aspiring_Developer_6-1633437402655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The correct value should be :-(0.0+0.0+23.8= 23.8, further 23.8/3=&amp;gt;7.9% but in the above table my value is coming 0.0%&lt;/P&gt;&lt;P&gt;When we click on group, it should show the sum of values coming under the Group division divided by the number of records.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_7-1633437479063.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63405i8ECF5D30A5FF94AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aspiring_Developer_7-1633437479063.png" alt="Aspiring_Developer_7-1633437479063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me ? I am not able to understand why it is working fine for first record and not for the remaining ?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842191#M69731</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2021-10-05T15:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggreagtion in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842376#M69745</link>
      <description>&lt;P&gt;Hi, I assume that you experience some sort of the Aggr() function grain mismatch described here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As far as I see, you are using nested Aggr() functions, and at least one Aggr() function seems to use&amp;nbsp;&lt;SPAN&gt;[User.Department Name] as only dimension.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842376#M69745</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2021-10-05T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggreagtion in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842397#M69747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response, I read the article that you shared above.&lt;/P&gt;&lt;P&gt;However, I am still not able to achieve what is&amp;nbsp; needed. Can you please help me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 16:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1842397#M69747</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2021-10-05T16:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggreagtion in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1843481#M69804</link>
      <description>&lt;P&gt;There is not much information given how your data looks like and what you want to calculate in detail.&lt;/P&gt;&lt;P&gt;Trying to understand what you've presented, you might be able to calculate your numbers even without the aggr() function, have a look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Additive-and-Non-Additive-Numbers/ba-p/1469714" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Additive-and-Non-Additive-Numbers/ba-p/1469714&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 10:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggreagtion-in-qliksense/m-p/1843481#M69804</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2021-10-07T10:49:51Z</dc:date>
    </item>
  </channel>
</rss>

