<?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: Please help with Cumulative sales in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525266#M107005</link>
    <description>&lt;P&gt;Today is my lucky day! Every question I read, is covered as an exercise in my &lt;A href="https://www.hpartner.at/qlik-expert-class-mit-oleg-troyansky-in-wien/anmeldung-qlik-expert-class-mit-oleg-troyansky/" target="_blank" rel="noopener"&gt;Qlik Expert class&lt;/A&gt;, or in my Advanced Development Techniques session at the &lt;A href="https://masterssummit.com" target="_blank" rel="noopener"&gt;Masters Summit for Qlik&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To show top 3 products for each Country, I'd recommend the following calculated Dimension for the Product:&lt;BR /&gt;&lt;BR /&gt;AGGR(IF(Rank(sum(Sales), 4) &amp;lt;= 3, Product), Country, Product)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 19:22:30 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2025-07-24T19:22:30Z</dc:date>
    <item>
      <title>Please help with Cumulative sales</title>
      <link>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525236#M106996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please help with below query.&lt;BR /&gt;Country&amp;nbsp; &amp;nbsp; Product&amp;nbsp; &amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;USA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Motors&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;USA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Spare&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;USA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Keys&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;300&lt;/P&gt;&lt;P&gt;USA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tyres&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/P&gt;&lt;P&gt;USA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Soaps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;600&lt;/P&gt;&lt;P&gt;IND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Soaps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;300&lt;/P&gt;&lt;P&gt;IND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Micher&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&lt;/P&gt;&lt;P&gt;IND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Spare&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;IND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Keys&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;400&lt;/P&gt;&lt;P&gt;UK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Raw Parts&amp;nbsp; &amp;nbsp; 400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 04:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525236#M106996</guid>
      <dc:creator>Qlik1_User1</dc:creator>
      <dc:date>2025-07-25T04:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Cumulative sales</title>
      <link>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525262#M107003</link>
      <description>&lt;P&gt;You'll need the rank function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rank(Sum(Sales), 4) &amp;lt;= 3&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;For the value of the top 3 products in each country, you can work with the &lt;STRONG&gt;total()&lt;/STRONG&gt; qualifier and the &lt;STRONG&gt;aggr()&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Sum(Sales)&lt;BR /&gt;/&lt;BR /&gt;Sum(&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; &lt;STRONG&gt;&amp;lt;Country&amp;gt;aggr&lt;/STRONG&gt;&lt;/FONT&gt;(If(&lt;FONT color="#FF0000"&gt;Rank(Sum(Sales), 4) &amp;lt;= 3&lt;/FONT&gt;, Sum(Sales))&lt;FONT color="#0000FF"&gt;,&lt;STRONG&gt;Country, Product&lt;/STRONG&gt;&lt;/FONT&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Matheus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 19:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525262#M107003</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2025-07-24T19:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Cumulative sales</title>
      <link>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525266#M107005</link>
      <description>&lt;P&gt;Today is my lucky day! Every question I read, is covered as an exercise in my &lt;A href="https://www.hpartner.at/qlik-expert-class-mit-oleg-troyansky-in-wien/anmeldung-qlik-expert-class-mit-oleg-troyansky/" target="_blank" rel="noopener"&gt;Qlik Expert class&lt;/A&gt;, or in my Advanced Development Techniques session at the &lt;A href="https://masterssummit.com" target="_blank" rel="noopener"&gt;Masters Summit for Qlik&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To show top 3 products for each Country, I'd recommend the following calculated Dimension for the Product:&lt;BR /&gt;&lt;BR /&gt;AGGR(IF(Rank(sum(Sales), 4) &amp;lt;= 3, Product), Country, Product)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 19:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Please-help-with-Cumulative-sales/m-p/2525266#M107005</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2025-07-24T19:22:30Z</dc:date>
    </item>
  </channel>
</rss>

