<?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 Sum(Aggr(Count)) ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840391#M69572</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I have an issue with the following Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63039iA3EA452916BBC34C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My measure is&amp;nbsp;&lt;STRONG&gt;count(DISTINCT Cliente)&lt;/STRONG&gt;. If I want to sum for each Cliente the total of the count, like the example in the third line, I want to see the number 4 as the total of the sum,&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's the correct expression? I've tried with&amp;nbsp;&lt;STRONG&gt;sum(aggr(count(DISTINCT Cliente), Brand)),&lt;/STRONG&gt;"Brand" is the dimension of the columns, but It's not working.&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Thanks to all!&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 09:17:48 GMT</pubDate>
    <dc:creator>danimarc12</dc:creator>
    <dc:date>2021-09-30T09:17:48Z</dc:date>
    <item>
      <title>Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840391#M69572</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I have an issue with the following Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63039iA3EA452916BBC34C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.PNG" alt="Cattura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My measure is&amp;nbsp;&lt;STRONG&gt;count(DISTINCT Cliente)&lt;/STRONG&gt;. If I want to sum for each Cliente the total of the count, like the example in the third line, I want to see the number 4 as the total of the sum,&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's the correct expression? I've tried with&amp;nbsp;&lt;STRONG&gt;sum(aggr(count(DISTINCT Cliente), Brand)),&lt;/STRONG&gt;"Brand" is the dimension of the columns, but It's not working.&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Thanks to all!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 09:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840391#M69572</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2021-09-30T09:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840395#M69574</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;It looks like you want to count Brand, not Cliente. In your example 4 is the no of distinct Brands for 1 distinct Client?&lt;/P&gt;&lt;P&gt;try count(distinct Brand) instead.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 09:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840395#M69574</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2021-09-30T09:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840400#M69575</link>
      <description>&lt;P&gt;Well the expression count(DISTINCT Cliente) is correct. Now I want to sum the values in the line.&lt;/P&gt;&lt;P&gt;Do you know how can I do it?&lt;/P&gt;&lt;P&gt;If I use the "Show totals" of the pivot table, I'm gonna display always 1.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 09:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840400#M69575</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2021-09-30T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840411#M69579</link>
      <description>&lt;P&gt;At the intersection of a single customer and a single brand in the pivot, there is always going to be one distinct customer and one distinct brand, so both should return the same result here. However, if you are counting distinct customer totals by customer, you're always going to get a result of one. You should be counting the brand, as &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/34575"&gt;@jbhappysocks&lt;/a&gt;&amp;nbsp; suggested. You could probably work around this using a more complex formula, but a simple count(distinct Brand) appears to meet your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 09:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840411#M69579</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-09-30T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840420#M69581</link>
      <description>&lt;P&gt;I'm gonna try to be more clear.&lt;/P&gt;&lt;P&gt;My goal is to display how many time I've sold a new Brand to a Cliente. As the image shows, I have sold 4 new brands to the Cliente "GLOBAL SHOP". The numbers are correct because I've checked but I would like to display also the total value of 4 (in this case).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840420#M69581</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2021-09-30T10:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840422#M69582</link>
      <description>&lt;P&gt;What you're describing, near as I can tell, matches count(distinct Brand) for a pivot that has Customer and Brand as its dimensions. Have you tried it? Is it not working as you expect?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840422#M69582</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-09-30T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(Count)) ?</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840431#M69584</link>
      <description>&lt;P&gt;Yes, it looks is working, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-Aggr-Count/m-p/1840431#M69584</guid>
      <dc:creator>danimarc12</dc:creator>
      <dc:date>2021-09-30T10:18:32Z</dc:date>
    </item>
  </channel>
</rss>

