<?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: Custom grouping, aggr expression problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867242#M71606</link>
    <description>&lt;P&gt;Thank you so mutch. I need to understand the solution now. If you can please explain more i will apreciate.&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 18:06:35 GMT</pubDate>
    <dc:creator>RaduM</dc:creator>
    <dc:date>2021-12-06T18:06:35Z</dc:date>
    <item>
      <title>Custom grouping, aggr expression problem</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867003#M71594</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;i have an example loading data to illustrate my problem&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;load * Inline [&lt;/P&gt;
&lt;P&gt;Year,Month,Name,Group,SubGroup,Value&lt;BR /&gt;2021,8,Name1,Group1,Subgroup1,10&lt;BR /&gt;2021,8,Name2,Group1,Subgroup1,8&lt;BR /&gt;2021,8,Name3,Group1,Subgroup2,10&lt;BR /&gt;2021,8,Name4,Group1,Subgroup3,7&lt;BR /&gt;2021,8,Name5,Group1,Subgroup1,5&lt;/P&gt;
&lt;P&gt;2021,8,Name6,Group2,Subgroup1,8&lt;BR /&gt;2021,8,Name7,Group2,Subgroup1,6&lt;BR /&gt;2021,8,Name8,Group2,Subgroup2,9&lt;BR /&gt;2021,8,Name9,Group2,Subgroup3,4&lt;BR /&gt;2021,8,Name10,Group2,Subgroup1,6&lt;/P&gt;
&lt;P&gt;2021,9,Name1,Group1,Subgroup1,10&lt;BR /&gt;2021,9,Name2,Group1,Subgroup1,8&lt;BR /&gt;2021,9,Name3,Group1,Subgroup2,10&lt;BR /&gt;2021,9,Name4,Group1,Subgroup3,7&lt;/P&gt;
&lt;P&gt;2021,9,Name6,Group2,Subgroup1,8&lt;BR /&gt;2021,9,Name7,Group2,Subgroup1,6&lt;BR /&gt;2021,9,Name8,Group2,Subgroup2,9&lt;BR /&gt;2021,9,Name9,Group2,Subgroup3,4&lt;BR /&gt;2021,9,Name10,Group2,Subgroup1,6&lt;BR /&gt;2021,9,Name11,Group2,Subgroup2,4&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;i created a table with 3 dimensions and 2 expressions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="group.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67978i364E98DE4F512BCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="group.PNG" alt="group.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the first expression is the sum of values&lt;/P&gt;
&lt;P&gt;and the second one should be the number of people with the same group and subgroup in the current selection&lt;/P&gt;
&lt;P&gt;I do not understand why I get the correct value only for the first Name in each group and subgroup and not for all of them.&lt;/P&gt;
&lt;P&gt;please let me know how I can fix this problem&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 10:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867003#M71594</guid>
      <dc:creator>RaduM</dc:creator>
      <dc:date>2021-12-06T10:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom grouping, aggr expression problem</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867232#M71605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aggr( nodistinct aggr( count( distinct Name), Group,SubGroup), Group,SubGroup)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the trick is to first aggr by dim the mesure count(distinct Name)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then to populate the value in all cell&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Re" aggr this result this time with a no distinct :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1638812148563.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68007i14ECD017116B8EC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1638812148563.png" alt="brunobertels_0-1638812148563.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867232#M71605</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2021-12-06T17:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom grouping, aggr expression problem</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867242#M71606</link>
      <description>&lt;P&gt;Thank you so mutch. I need to understand the solution now. If you can please explain more i will apreciate.&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 18:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867242#M71606</guid>
      <dc:creator>RaduM</dc:creator>
      <dc:date>2021-12-06T18:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom grouping, aggr expression problem</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867460#M71637</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact this formula will do the same&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aggr( &lt;STRONG&gt;NODISTINCT&amp;nbsp;&lt;/STRONG&gt;count( distinct Name), Group,SubGroup)&lt;/P&gt;
&lt;P&gt;So :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;will return one result for each value upon which aggregation is applied.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;will return an array of values as a result for each value upon which aggregation is applied.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 09:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867460#M71637</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2021-12-07T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom grouping, aggr expression problem</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867511#M71639</link>
      <description>&lt;P&gt;i like this solution better&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 10:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-grouping-aggr-expression-problem/m-p/1867511#M71639</guid>
      <dc:creator>RaduM</dc:creator>
      <dc:date>2021-12-07T10:53:30Z</dc:date>
    </item>
  </channel>
</rss>

