<?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: Aggr In Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832119#M68657</link>
    <description>&lt;P&gt;hi Chris&lt;/P&gt;&lt;P&gt;Yes I saw the article. Yes Revenue = Sales. That is just an example, the order A-G is not order, its hypotetical customer. I only work with what I presented above. The last F-G was e.g. 10.1 and 10.5 but you are right the order should have be opposite coming from G to A&lt;/P&gt;&lt;P&gt;None of your questions are a problem here, but rather to make this to be functionable when I switch Customer ID with Market in a pivot table.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 10:43:45 GMT</pubDate>
    <dc:creator>Fiorrie</dc:creator>
    <dc:date>2021-08-30T10:43:45Z</dc:date>
    <item>
      <title>Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1831727#M68588</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I hope someone can help. I am using Pareto Analysis to evaluate how many customers are doing 10/20/30...% of sales. My pivot table looks like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression that calculates Cumulative Revenue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(Sum(sales), 0, RowNo()))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression that calculates %Cumulative:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(Sum(sales), 0, RowNo())) / Sum(total sales)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression that calculates Customer Number:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If(RangeSum(Above(Sum(sales), 0, RowNo())) / Sum(total sales) &amp;lt;= 0.1, Count(distinct customer)&lt;/P&gt;&lt;P&gt;So everything is working, except I need to see these&amp;nbsp;10/20/30...% of sales in customer per market (below table called outcome). Once I switch market with customer order, it evaluates everything per market not per customer logically.&lt;/P&gt;&lt;P&gt;I need to sum up those 10% sales by customer number and to see them split by market (with aggr fuction probably)&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fiorrie_0-1630059158017.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60879i4D6ABE76D24B0D7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fiorrie_0-1630059158017.png" alt="Fiorrie_0-1630059158017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 10:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1831727#M68588</guid>
      <dc:creator>Fiorrie</dc:creator>
      <dc:date>2021-08-27T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1831853#M68604</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Struggling a bit to follow your numbers. So Revenue=Sum(Sales) &amp;amp; Cumulative Revenue your formula works. I assume there are some other records that are not part of the set shown that mean these 7 form the top 10%, but not then sure how your %Cumulative can work given F &amp;amp; G both show 10% &amp;amp; even why you would choose to order A-G as you have, is G not my first contributor to the 10% being the biggest?&lt;/P&gt;&lt;P&gt;Have you seen the following blog post?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis-Revisited/ba-p/1473684" target="_blank"&gt;Recipe for a Pareto Analysis – Revisited - Qlik Community - 1473684&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 17:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1831853#M68604</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-08-27T17:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832119#M68657</link>
      <description>&lt;P&gt;hi Chris&lt;/P&gt;&lt;P&gt;Yes I saw the article. Yes Revenue = Sales. That is just an example, the order A-G is not order, its hypotetical customer. I only work with what I presented above. The last F-G was e.g. 10.1 and 10.5 but you are right the order should have be opposite coming from G to A&lt;/P&gt;&lt;P&gt;None of your questions are a problem here, but rather to make this to be functionable when I switch Customer ID with Market in a pivot table.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 10:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832119#M68657</guid>
      <dc:creator>Fiorrie</dc:creator>
      <dc:date>2021-08-30T10:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832180#M68666</link>
      <description>&lt;P&gt;Maybe to add, to help you understand more, I have following expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(RangeSum(Above(sales), 0, RowNo())) / Sum(total sales) &amp;lt;= 0.1, (customer))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to incorporate this below statement (or through aggr function), to show the result I calculated above (how many customer per market were in top 10% of sales)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(distinct TOTAL &amp;lt;market&amp;gt;&amp;nbsp; customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Basically to combine these two and make it function, which i was not successful so far.&lt;/P&gt;&lt;P&gt;Thanks for your thoughts&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 13:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832180#M68666</guid>
      <dc:creator>Fiorrie</dc:creator>
      <dc:date>2021-08-30T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832296#M68676</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think I can see where you want to go, although still have some doubts on parts of what you are doing.&lt;/P&gt;&lt;P&gt;So using the rangesum/total sales I think is giving you the largest customers until you have hit a total of 10% of sales, this fits in with the pareto style formulae, but which might not quite be what might be understood as 'top 10% of sales'&amp;nbsp; as an alternative it could be taken to mean the 10% of customers with largest sales, irrespective how much you expect that to be (not sure I would call that a pareto analysis).&lt;/P&gt;&lt;P&gt;Either way you are looking to then count by customers that are in that set across a second dimension. I've fabricated some data that (sort of) fits an 80/20 pareto - so my customers F &amp;amp; G are the 2 largest &amp;amp; sum to 80% (if I had looked at 10%, either way I would have needed more customers ...). F has sales in 3 markets, G in 1, which is one of F's, so I expect to see Z have 2 (F &amp;amp; G) and X &amp;amp; Y 1 (F).&lt;/P&gt;&lt;P&gt;So top right then shows this following the pareto recipe using a calculated dimension to class as ABC, bottom right then amends the formula a bit to return null if not in the A class &amp;amp; then not show nulls, which is close to what I think you want.&lt;/P&gt;&lt;P&gt;The presentation leaves a bit to be desired (can't seem to be able to hide the column and it still work), but the actual values seem OK. I've not tested this a lot, so that might be a fluke, but as I am not sure it is quite where you want to go easier to share first.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210830_1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60993iEF3510BE81295F2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210830_1.png" alt="20210830_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 19:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832296#M68676</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-08-30T19:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832599#M68716</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;I reviewed your solution one more time, and I think I finally got to some conclusion. It is not working 100% now, but I will manage.&lt;/P&gt;&lt;P&gt;Many thanks for your time appreciated!&lt;/P&gt;&lt;P&gt;Have a good day&lt;/P&gt;&lt;P&gt;Jana&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832599#M68716</guid>
      <dc:creator>Fiorrie</dc:creator>
      <dc:date>2021-08-31T16:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr In Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832600#M68717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Glad it helped. The pareto recipe used {1} to ignore selections in parts of it ... you may want to strip that out.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 16:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-In-Pivot-Table/m-p/1832600#M68717</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-08-31T16:34:01Z</dc:date>
    </item>
  </channel>
</rss>

