<?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 Aggregated Products per Customer ID in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441151#M97315</link>
    <description>&lt;P&gt;Hi i have loaded some data through SQL editor.&lt;/P&gt;
&lt;P&gt;I have created a table in Qlik where i have these columns:&lt;/P&gt;
&lt;P&gt;- Customer ID&lt;/P&gt;
&lt;P&gt;- Product Category&lt;/P&gt;
&lt;P&gt;- Count (Product Category)&lt;/P&gt;
&lt;P&gt;I WANT TO CREATE&amp;nbsp; A COLUMN THAT SUM PRODUCTS PER CUSTOMER ID&lt;/P&gt;
&lt;P&gt;SO THAT THE PICTURE I HAVE ATTACHED SHOULD SHOW THAT CUSTOMER ID 123 = 5&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolfmeyn_0-1713170815014.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164080iCEE3326C3750429A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolfmeyn_0-1713170815014.png" alt="Wolfmeyn_0-1713170815014.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, 15 Apr 2024 08:47:01 GMT</pubDate>
    <dc:creator>Wolfmeyn</dc:creator>
    <dc:date>2024-04-15T08:47:01Z</dc:date>
    <item>
      <title>Aggregated Products per Customer ID</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441151#M97315</link>
      <description>&lt;P&gt;Hi i have loaded some data through SQL editor.&lt;/P&gt;
&lt;P&gt;I have created a table in Qlik where i have these columns:&lt;/P&gt;
&lt;P&gt;- Customer ID&lt;/P&gt;
&lt;P&gt;- Product Category&lt;/P&gt;
&lt;P&gt;- Count (Product Category)&lt;/P&gt;
&lt;P&gt;I WANT TO CREATE&amp;nbsp; A COLUMN THAT SUM PRODUCTS PER CUSTOMER ID&lt;/P&gt;
&lt;P&gt;SO THAT THE PICTURE I HAVE ATTACHED SHOULD SHOW THAT CUSTOMER ID 123 = 5&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolfmeyn_0-1713170815014.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164080iCEE3326C3750429A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolfmeyn_0-1713170815014.png" alt="Wolfmeyn_0-1713170815014.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, 15 Apr 2024 08:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441151#M97315</guid>
      <dc:creator>Wolfmeyn</dc:creator>
      <dc:date>2024-04-15T08:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Products per Customer ID</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441172#M97323</link>
      <description>&lt;P&gt;You can either add this to your script and use "Summary" dimension&lt;/P&gt;
&lt;P&gt;tmp:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;CustomerID, ProductCategory &lt;BR /&gt;123, 'ab'&lt;BR /&gt;123, 'ab'&lt;BR /&gt;123, 'ac'&lt;BR /&gt;123, 'ac'&lt;BR /&gt;123, 'ac'&lt;BR /&gt;125, 'ac'&lt;BR /&gt;145, 'ad'&lt;BR /&gt;145, 'ad'&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;left join (tmp)&lt;BR /&gt;load &lt;BR /&gt;count(ProductCategory ) as Summary,&lt;BR /&gt;CustomerID&lt;BR /&gt;Resident tmp&lt;BR /&gt;group by CustomerID;&lt;/P&gt;
&lt;P&gt;or add this to your table in the front as dimension as well&lt;/P&gt;
&lt;P&gt;=aggr(count(ProductCategory),CustomerID)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 09:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441172#M97323</guid>
      <dc:creator>MATC</dc:creator>
      <dc:date>2024-04-15T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Products per Customer ID</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441175#M97324</link>
      <description>&lt;P&gt;If you have both Customer ID and Product Category as dimensions in the chart, you can use the following to calculate number of product categories:&lt;/P&gt;
&lt;P&gt;Count(total &amp;lt;[Customer ID]&amp;gt; [Product Category])&lt;/P&gt;
&lt;P&gt;But it is simpler if you just have Customer ID as dimension. Then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count([Product Category])&lt;/P&gt;
&lt;P&gt;will work.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 09:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregated-Products-per-Customer-ID/m-p/2441175#M97324</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2024-04-15T09:17:04Z</dc:date>
    </item>
  </channel>
</rss>

