<?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: Aggregation is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278267#M857347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could see the formula is working ..what is the logic your logic for could you explain with an example ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 06:59:11 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2017-02-02T06:59:11Z</dc:date>
    <item>
      <title>Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278266#M857346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 4 dimensions like &lt;STRONG&gt;GROUP, SUBGROUP,PRODUCT,SUBPRODUCT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Measures &lt;STRONG&gt;SALES,CAL_SALES,ITEMS,DIV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I created a pivot table.CAL_SALES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Product P1 SP1,SP2,SP3,SP4,SP5 are the SubProducts.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For Product P2 SP6,SP7,SP8,SP9,SP10 are the SubProducts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I minimize Products,Subproducts &amp;gt;&amp;gt;&amp;gt; Need to show Averages of SubProducts,Products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If I minimize Group,SubGroups &amp;gt;&amp;gt;&amp;gt; Need to show the total of (Averages of SubProducts,Products).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have used the below expression:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=IF(Dimensionality()=4,AVG(SALES),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; IF(Dimensionality()=3,aggr(AVG(SALES),PRODUCT),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; IF(Dimensionality()=2,SUM(aggr(AVG(SALES),PRODUCT)),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; IF(Dimensionality()=1,SUM(aggr(AVG(SALES),PRODUCT)),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; IF(Dimensionality()=0,SUM(aggr(AVG(SALES),PRODUCT,GROUP,SUBGROUP))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; )))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula is not working in my real application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the screens and app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151659_Capture.PNG" style="height: 176px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151660_1.PNG" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/151670_2.PNG" style="height: 90px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/151671_3.PNG" style="height: 105px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278266#M857346</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278267#M857347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could see the formula is working ..what is the logic your logic for could you explain with an example ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 06:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278267#M857347</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-02-02T06:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278268#M857348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;Formula is working in the sample data. But not working in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If I minimize Products,Subproducts &amp;gt;&amp;gt;&amp;gt; Need to show Averages of SubProducts,Products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If I minimize Group,SubGroups &amp;gt;&amp;gt;&amp;gt; Need to show the total of (Averages of SubProducts,Products).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Could you advise in re-writing the expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/stalwar1"&gt;stalwar1&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-avatarid="10170" data-externalid="" data-online="false" data-presence="null" data-userid="23109" data-username="jagan" href="https://community.qlik.com/people/jagan" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #f2f2f2;"&gt;jagan mohan rao appala&lt;/A&gt;&lt;SPAN style="color: #a9a9a9; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="color: #a9a9a9; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="color: #a9a9a9; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/mrkachhiaimp"&gt;mrkachhiaimp&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="color: #a9a9a9; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;A _jive_internal="true" data-avatarid="6257" data-externalid="" data-online="false" data-presence="null" data-userid="96544" data-username="gwassenaar" href="https://community.qlik.com/people/gwassenaar" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; text-decoration: underline; background-color: #f2f2f2;"&gt;gysbert wassenaar&lt;/A&gt;‌&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="color: #a9a9a9; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278268#M857348</guid>
      <dc:creator />
      <dc:date>2017-02-02T07:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278269#M857349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean to say that this formula is working here but not in your real application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt; .. you should provide that sample application or respective data to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278269#M857349</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-02-02T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278270#M857351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per your inputs try this &lt;/P&gt;&lt;P&gt;=IF(Dimensionality()=5,AVG(SALES),&lt;/P&gt;&lt;P&gt;IF(Dimensionality()=4,aggr(AVG(SALES),PRODUCT,SUBPRODUCT),&lt;/P&gt;&lt;P&gt;IF(Dimensionality()=3,(aggr(AVG(SALES),PRODUCT,SUBPRODUCT)),&lt;/P&gt;&lt;P&gt;IF(Dimensionality()=2,SUM(aggr(AVG(SALES),PRODUCT,SUBPRODUCT)),&lt;/P&gt;&lt;P&gt;IF(Dimensionality()=1,SUM(aggr(AVG(SALES),PRODUCT,GROUP,SUBGROUP))&lt;/P&gt;&lt;P&gt;)))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278270#M857351</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-02-02T07:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278271#M857353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I dont really get it, but try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()=4,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AVG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()=3,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()=2,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()=1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()=0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SUBGROUP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt; &lt;BR /&gt; )))))&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 08:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278271#M857353</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-02-02T08:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278272#M857355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you try below one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Dimensionality()=1, Aggr(Avg(SALES),GROUP),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=2, Aggr(Avg(SALES),SUBGROUP),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=3, Aggr(Avg(SALES),PRODUCT),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=4, Aggr(Avg(SALES),SUBPRODUCT))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using SUM(&lt;SPAN style="font-size: 13.3333px;"&gt;Aggr(Avg(SALES),SUBGROUP))&lt;/SPAN&gt; also it will give same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 12:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278272#M857355</guid>
      <dc:creator>sarasunagaram</dc:creator>
      <dc:date>2017-02-02T12:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278273#M857357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my investigation. This formula is working fine. But, from your words,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;"Formula is working in the sample data. But not working in my application".&lt;/SPAN&gt; What you mean by this statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mention where are you exactly facing the issue with the above solution&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ways, I am re-writing the expression with few changes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;=IF(Dimensionality()=4,AVG(SALES),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; IF(Dimensionality()=3,SUM(aggr(AVG(SALES),PRODUCT)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; IF(Dimensionality()=2,SUM(aggr(AVG(SALES),PRODUCT)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; IF(Dimensionality()=1,SUM(aggr(AVG(SALES),PRODUCT)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; IF(Dimensionality()=0,SUM(aggr(AVG(SALES),PRODUCT,GROUP))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; )))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 12:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278273#M857357</guid>
      <dc:creator>rabbani_sk</dc:creator>
      <dc:date>2017-02-02T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation is not working</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278274#M857358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using conditional show in Pivot Table and only showing one dimension at a time then dimensionality () would be always 1. In that case you don't need such a complex expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 06:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-is-not-working/m-p/1278274#M857358</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-02-03T06:13:42Z</dc:date>
    </item>
  </channel>
</rss>

