<?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: Count Aggr on Dimension anomaly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132847#M916702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Can't use your statement because then I loose the Distinct even though there is a Distinct in the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 10:37:41 GMT</pubDate>
    <dc:creator>amber2000</dc:creator>
    <dc:date>2016-05-18T10:37:41Z</dc:date>
    <item>
      <title>Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132840#M916695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fellow Qlik Users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a strange problem in my pivot table chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use 3 expressions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Expression&amp;nbsp; #Colli&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Sum({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; }[SD_Shipped_Colli])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Calculate the Sum of "SD_Shipped_Colli" &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;based on the current selection&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;but before calculating:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- Exclude records equal to "12" in field "SD_WH"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- Exclude records equal to "&lt;SPAN style="font-size: 13.3333px;"&gt;PBS_Containers" and "PBS_Displays" in field &lt;SPAN style="font-size: 13.3333px;"&gt;Aisle_Zone&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) for the second Expression #Pallets I use a combination of Count and Aggr function: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Count({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; }aggr(count([Aisle_Facturation]), SD_Dest_Pallet))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;Count the distinct values of&amp;nbsp; "SD_Dest_Pallet" &lt;SPAN style="font-size: 10pt;"&gt;based on the current selection&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;but before Counting:&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;- Exclude records equal to "12" in field "SD_WH"&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;- Exclude records equal to "&lt;SPAN style="font-size: 13.3333px;"&gt;PBS_Containers" and "PBS_Displays" in field &lt;SPAN style="font-size: 13.3333px;"&gt;Aisle_Zone&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Group by Aisle_Facturation&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) the third expression Colli / Pal Uit is the result out of the divide Expression1 by Expression2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= #Colli / #Pallets&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is presented per month and if I select only one month there is no problem, select up to 6&amp;nbsp; months no problem BUT if I select more then 6 months the data changes for the expression #Pallets where I use the Aggr function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select 1 month the #Pallets value for jan is correct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Indicatoren 1 maand uit aggr function.png" class="jive-image image-1" src="/legacyfs/online/124416_Indicatoren 1 maand uit aggr function.png" style="height: 146px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select 6 months the #Pallets value for jan is correct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Indicatoren 6 maand uit aggr function.png" class="jive-image image-2" src="/legacyfs/online/124417_Indicatoren 6 maand uit aggr function.png" style="height: 90px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a whole year (2015) the #Pallets value for jan is changed and not correct anymore.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Indicatoren 1 jaar uit aggr function.png" class="jive-image image-3" src="/legacyfs/online/124421_Indicatoren 1 jaar uit aggr function.png" style="height: 89px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know why my aggregate calculation is done correctly up until 6 months and when I select more months the calculation is going wrong. (The dataset contains +- 30.000.000 records)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Monique&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/Count-Aggr-on-Dimension-anomaly/m-p/1132840#M916695</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132841#M916696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression doesn't fit the description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= Count({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; }aggr(count([Aisle_Facturation]), SD_Dest_Pallet))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;2) for the second Expression #Pallets I use a combination of Count and Aggr function:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;= Count({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; }aggr(count([Aisle_Facturation]), SD_Dest_Pallet))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;Count the &lt;SPAN style="color: #99cc00;"&gt;distinct&lt;/SPAN&gt; values of&amp;nbsp; "&lt;SPAN style="color: #0000ff;"&gt;SD_Dest_Pallet&lt;/SPAN&gt;" &lt;SPAN style="font-size: 10pt;"&gt;based on the current selection&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;but before Counting:&lt;/P&gt;
&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;- Exclude records equal to "12" in field "SD_WH"&lt;/P&gt;
&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;- Exclude records equal to "&lt;SPAN style="font-size: 13.3333px;"&gt;PBS_Containers" and "PBS_Displays" in field &lt;SPAN style="font-size: 13.3333px;"&gt;Aisle_Zone&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- &lt;SPAN style="color: #993366;"&gt;Group by Aisle_Facturation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you need this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt;} Aggr(Count(&lt;SPAN style="color: #99cc00;"&gt;DISTINCT&lt;/SPAN&gt; &lt;STRONG style="color: #0000ff; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SD_Dest_Pallet&lt;/STRONG&gt;), &lt;STRONG style="color: #993366; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Aisle_Facturation]&lt;/STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132841#M916696</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-12T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132842#M916697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Besides what Sunny mentioned, shouldn't you use &lt;STRONG&gt;Sum()&lt;/STRONG&gt; as outer aggregation function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the reason why your data changes might be caused by a dimensional grain mismatch:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using a dimension &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SD_Dest_Pallet &lt;/STRONG&gt;as dimension to aggr() function, but three different dimensions in your chart.&lt;/P&gt;&lt;P&gt;Take care that your grain in the aggr() function is lower than in the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132842#M916697</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-12T11:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132843#M916698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe Try This&lt;/P&gt;&lt;P&gt;Count(aggr(count(DISTINCT {$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; } [Aisle_Facturation]), SD_Dest_Pallet,Other Dimensions))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132843#M916698</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-12T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132844#M916699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kamiel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean with other dimensions?&lt;/P&gt;&lt;P&gt;Can you give an example please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that when I make a single selection of the Aisle_Facturation (for example PBL_OVERIGE) the values for # pallets also changes to a different value.&lt;/P&gt;&lt;P&gt;My theory for that is that when you select an individual dimension value the aggr() purpose is gone and the distinct function is used (that's what I see in the details of the data anyway), is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132844#M916699</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-17T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132845#M916700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I vaguely remember a very similar discussion some months ago, were you involved in that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you read the blog post I've linked above or &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.naturalsynergies.com/q-tip-14-aggr-and-synthetic-dimensions/" title="http://www.naturalsynergies.com/q-tip-14-aggr-and-synthetic-dimensions/"&gt;Q-Tip # 14 – AGGR() and Synthetic Dimensions | Natural Synergies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you are seeing here is the DISTINCTness of the Aggr() function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remember correctly the past discussion, that's what you explictely want to have, counting each item only once, even when it has multiple relations to the chart dimension values.&lt;/P&gt;&lt;P&gt;But maybe I am totally wrong here, so you might need to shed some light on your complete requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 17:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132845#M916700</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-17T17:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132846#M916701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By other dimensions, I meant Year, month, year and month. Also to use the fields in your cyclic group. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(aggr(count(DISTINCT {$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; } [Aisle_Facturation]), SD_Dest_Pallet,Year, Month,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Aisle_Facturation]&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kamiel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 07:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132846#M916701</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-18T07:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132847#M916702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Can't use your statement because then I loose the Distinct even though there is a Distinct in the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 10:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132847#M916702</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-18T10:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132848#M916703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I was Started that discussion and then I thought the problem was solved.&lt;/P&gt;&lt;P&gt;Sadly I discovered that it wasn't solved completely when I selected a whole year and then one value of the dimension Aisle_Facturation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I've read the post and it's still puzzling me on how to fix my problem (I can't use NODISTINCT to solve this because I need the distinct values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to achieve is:&lt;/P&gt;&lt;P&gt;A distinct Count of SD_Dest_Pallets over&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Aisle_Facturation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Shop_Ens&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; per Month (can be multiple months up to more than a year)&lt;/P&gt;&lt;P&gt;Additionally when necessary I want to see the the data per SD_Delivery_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One SD_Destination_Pallet can appear in 2 different &lt;SPAN style="font-size: 13.3333px;"&gt;SD_Delivery_Date (so this is also the case for month, a &lt;SPAN style="font-size: 13.3333px;"&gt;SD_Destination_Pallet can appear in 2 different months when the date is at the end of the month)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;One &lt;SPAN style="font-size: 13.3333px;"&gt;SD_Destination_Pallet can appear in different Aisle_Facturation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;A &lt;SPAN style="font-size: 13.3333px;"&gt;SD_Destination_Pallet &lt;STRONG&gt;can't&lt;/STRONG&gt; appear in different Shop_Ens&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was indeed what I asked but when I select a Year the data shouldn't change per month for #pallets and Colli/Pal Uit&lt;/P&gt;&lt;P&gt;I can understand that I loose the distinct when I select one value of &lt;SPAN style="font-size: 13.3333px;"&gt;Aisle_Facturation but not the change in values per month if I select more then 6 months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it wright when I think of Aggr() as a kind of Group By?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 11:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132848#M916703</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-18T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132849#M916704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm so sorry that I keep bothering you all about this issue but it's very important and I need to present my results thursday and it doesn't work.&lt;/P&gt;&lt;P&gt;I'm getting so frustrated with the aggr() but I'm almost there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is now my expression:&lt;/P&gt;&lt;P&gt;Sum(aggr(Count({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; } DISTINCT SD_Dest_Pallet), Year, MonthYear, Month, WeekDay, SD_Delivery_Date, Logistical_Flow, Shop_Ens))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I didn't use all the dimension from the cyclic groups because I don't get the wright result.&lt;/P&gt;&lt;P&gt;This is an example that I use to make things a little bit clearer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="125619" alt="2016-05-24 18_25_19-Clipboard.png" class="jive-image image-1" src="/legacyfs/online/125619_2016-05-24 18_25_19-Clipboard.png" style="height: 66px; width: 620px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;This is what the result should be, the Count is correct for SD_Dest_Pallet but the Sum for SD_Shipped_Colli is not.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Month;SD_Delivery_Date;Aisle_Facturation;Shop_Ens;SD_Dest_Pallet;SD_Shipped_Colli;SD_Dest_Pallet&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;jun;20150618;PBL_OVERIGE;Price_List Partner;554001020020431209;31;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;jun;20150618;PBS_OVERIGE;Price_List Partner;554001020020000047;3;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example is also visible in the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really happy if someone could help me figure this out. there is still something missing but I don't see what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132849#M916704</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-24T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132850#M916705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do apologize, as I was a bit busy. Would it be possible to get a reduced model.&lt;/P&gt;&lt;P&gt;Can you please try this&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[SD_WH] -= {'12'}, [Aisle_Zone] -= {'PBS_Containers, PBS_Displays'}&amp;gt; } DISTINCT SD_Dest_Pallet), &lt;/P&gt;&lt;P&gt;Year, Month, WeekDay, Aisle_Facturation, SD_Delivery_Date, Logistical_Flow, Shop_Ens))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 07:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132850#M916705</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-25T07:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132851#M916706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No problem, I'm so sorry that I can't seem to fix this issue but I'm learning so much about Aggr() now from you guys.&lt;/P&gt;&lt;P&gt;I've tried your new statement but the result isn't correct.&lt;/P&gt;&lt;P&gt;Is the qvw i've attached yesterday to big to test? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll attach a smaller model also provide in excel how the results should look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132851#M916706</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-25T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132852#M916707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks got it. Will have a look now and let you know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132852#M916707</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-25T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132853#M916708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried a new expression so that from Aisle_Zone the 2 values are exlcuded.&lt;/P&gt;&lt;P&gt;Every Time I try the combination &lt;SPAN style="font-size: 13.3333px;"&gt;Aisle_Facturation, Logistical_Flow everything goes wrong. Lik you told me before I have to use all Dimensions in the aggr()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; }&lt;/P&gt;&lt;P&gt; aggr(Count({$ &amp;lt;[SD_WH] -= {12}, [Aisle_Zone] -= {PBS_Containers, PBS_Displays}&amp;gt; } DISTINCT SD_Dest_Pallet), Aisle_Facturation, Logistical_Flow, Shop_Ens, Year, MonthYear, SD_Delivery_Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I send you a simpler model then you won't see what is going wrong.&lt;/P&gt;&lt;P&gt;I'll look further to simulate the strange behavior in a smaller model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for trying to help me, I'm getting really desperate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 10:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132853#M916708</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-25T10:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132854#M916709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Monique,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please try this and let me know if it helps.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. Set up 2 variables&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable name - vCurrentAisle&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable Value&amp;nbsp; = GetCurrentField(Aisle) --this is your group&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable name - vCurrentPeriods&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable Value = &lt;SPAN style="font-size: 13.3333px;"&gt;GetCurrentField(Period) --this is your group&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(aggr(Count({$ &amp;lt;[SD_WH] -= {'12'}, [Aisle_Zone] -= {'PBS_Containers, PBS_Displays'}&amp;gt; } SD_Dest_Pallet),$(&lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentAisle&lt;/SPAN&gt;),$(&lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentPeriods&lt;/SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kamiel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132854#M916709</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-25T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132855#M916710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kamiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add the variable Value My group isn't recognized, only individual fields are allowed and that gives 0 as expression result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be that the Count(distinct SD_Dest_Pallet) value can't be aggregated in this case because of the different granularity of the fields Logistical_Flow and Aisle_Facturation. &lt;/P&gt;&lt;P&gt;One logistical_Flow can contain more Aisle_Facturation but Aisle_Facturation can only belong to 1 Logistical_Flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 15:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132855#M916710</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-25T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132856#M916711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monique,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is the attached what you are looking for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="All Months.JPG" class="jive-image image-1" src="/legacyfs/online/125813_All Months.JPG" style="height: 79px; width: 620px;" /&gt;&lt;IMG alt="Jan to April.JPG" class="jive-image image-2" src="/legacyfs/online/125814_Jan to April.JPG" style="height: 118px; width: 620px;" /&gt;&lt;IMG alt="January.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/125815_January.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132856#M916711</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-25T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132857#M916712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looks OK but I have to see the data in detail.&lt;/P&gt;&lt;P&gt;What did you do to get this result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Monique &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 15:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132857#M916712</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-26T15:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132858#M916713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monique,&lt;/P&gt;&lt;P&gt;Attached Please find the qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 00:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132858#M916713</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2016-05-27T00:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Aggr on Dimension anomaly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132859#M916714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your patience.&lt;/P&gt;&lt;P&gt;In a few hours I'm leaving on holiday so I can't test your solution a this moment.&lt;/P&gt;&lt;P&gt;I wont forget to give you an answer when I get back so we can close this difficult issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Monique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 14:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Aggr-on-Dimension-anomaly/m-p/1132859#M916714</guid>
      <dc:creator>amber2000</dc:creator>
      <dc:date>2016-05-27T14:08:19Z</dc:date>
    </item>
  </channel>
</rss>

