<?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 Pareto on 2 dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433730#M430945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello the community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spend so many hours on my problem that I finally asking for your help. Let me explain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QV12.10 SR8.&lt;/P&gt;&lt;P&gt;For some needs in retail, I have built a pareto using the new great feature in the aggr function to sort my element with an expression.&lt;/P&gt;&lt;P&gt;And that works perfectly to define my Class A,B,C per product (ArticleNo in my case) using this function:&lt;/P&gt;&lt;P&gt;=Aggr(&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty))/sum(TOTAL #SalesQty), 0, rowno() ))&amp;lt;=0.8, 'A',&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL #SalesQty), 0, rowno() ))&amp;lt;=0.95, 'B',&lt;/P&gt;&lt;P&gt;'C')),&lt;/P&gt;&lt;P&gt;(_KeyArticleNo, (=sum(#SalesQty), Desc))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have now been asked to do the same thing per product and product group and here comes the problem...&lt;/P&gt;&lt;P&gt;it looks like the sorting doesn't work when I had an extra dimesnion in my aggr function. I tried all combination bu nothing works.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;=Aggr(&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL &amp;lt;ArticleGroup&amp;gt; #SalesQty), 0, rowno() ))&amp;lt;=0.8, 'A',&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL &amp;lt;ArticleGroup&amp;gt; #SalesQty), 0, rowno() ))&amp;lt;=0.95, 'B',&lt;/P&gt;&lt;P&gt;'C')),&lt;/P&gt;&lt;P&gt;(_KeyArticleNo, (ArticleGroup, (=Sum(#SalesQty), DESC)))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with some picture to illustrate my issue.&lt;/P&gt;&lt;P&gt;My test case is ArticleGroup: A10 - Jacket, Class A&lt;/P&gt;&lt;P&gt;Here is what I currently have:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/185815_Capture1.PNG" style="height: 329px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;So 17 for A10, Class A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here is what I should get according to my other table I have created (that gives too many info):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/185814_Capture2.PNG" style="height: 416px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I should have 14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you will also find the QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me? I have no solution anymore...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2017 19:01:14 GMT</pubDate>
    <dc:creator>lematiethibault</dc:creator>
    <dc:date>2017-12-05T19:01:14Z</dc:date>
    <item>
      <title>Pareto on 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433730#M430945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello the community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spend so many hours on my problem that I finally asking for your help. Let me explain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QV12.10 SR8.&lt;/P&gt;&lt;P&gt;For some needs in retail, I have built a pareto using the new great feature in the aggr function to sort my element with an expression.&lt;/P&gt;&lt;P&gt;And that works perfectly to define my Class A,B,C per product (ArticleNo in my case) using this function:&lt;/P&gt;&lt;P&gt;=Aggr(&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty))/sum(TOTAL #SalesQty), 0, rowno() ))&amp;lt;=0.8, 'A',&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL #SalesQty), 0, rowno() ))&amp;lt;=0.95, 'B',&lt;/P&gt;&lt;P&gt;'C')),&lt;/P&gt;&lt;P&gt;(_KeyArticleNo, (=sum(#SalesQty), Desc))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have now been asked to do the same thing per product and product group and here comes the problem...&lt;/P&gt;&lt;P&gt;it looks like the sorting doesn't work when I had an extra dimesnion in my aggr function. I tried all combination bu nothing works.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;=Aggr(&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL &amp;lt;ArticleGroup&amp;gt; #SalesQty), 0, rowno() ))&amp;lt;=0.8, 'A',&lt;/P&gt;&lt;P&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL &amp;lt;ArticleGroup&amp;gt; #SalesQty), 0, rowno() ))&amp;lt;=0.95, 'B',&lt;/P&gt;&lt;P&gt;'C')),&lt;/P&gt;&lt;P&gt;(_KeyArticleNo, (ArticleGroup, (=Sum(#SalesQty), DESC)))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with some picture to illustrate my issue.&lt;/P&gt;&lt;P&gt;My test case is ArticleGroup: A10 - Jacket, Class A&lt;/P&gt;&lt;P&gt;Here is what I currently have:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/185815_Capture1.PNG" style="height: 329px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;So 17 for A10, Class A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here is what I should get according to my other table I have created (that gives too many info):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/185814_Capture2.PNG" style="height: 416px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I should have 14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you will also find the QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me? I have no solution anymore...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433730#M430945</guid>
      <dc:creator>lematiethibault</dc:creator>
      <dc:date>2017-12-05T19:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto on 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433731#M430946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL &amp;lt;ArticleGroup&amp;gt; #SalesQty), 0, rowno() ))&amp;lt;=0.8, 'A',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(rangesum(Above(sum(#SalesQty)/sum(TOTAL &amp;lt;ArticleGroup&amp;gt; #SalesQty), 0, rowno() ))&amp;lt;=0.95, 'B',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'C')),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArticleGroup,(_KeyArticleNo, (=Sum(#SalesQty), DESC))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185818_Capture.PNG" style="height: 345px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433731#M430946</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-05T20:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto on 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433732#M430947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG!!!&lt;/P&gt;&lt;P&gt;Thank you so much. I have spent 4 hours on this....&lt;/P&gt;&lt;P&gt;The syntax for aggr is to me so tricky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-on-2-dimensions/m-p/1433732#M430947</guid>
      <dc:creator>lematiethibault</dc:creator>
      <dc:date>2017-12-05T20:55:52Z</dc:date>
    </item>
  </channel>
</rss>

