<?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: Pareto - accumulated sum  - sorting issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632193#M446527</link>
    <description>Hi,&lt;BR /&gt;I think you need to check 'Expression' as your sort option (3rd down, 2 above Numeric Value from your last screen shot) and enter the expression - Sum(Complaint_Value) - and check Descending.&lt;BR /&gt;Cheers,&lt;BR /&gt;Chris.&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Oct 2019 19:49:43 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2019-10-07T19:49:43Z</dc:date>
    <item>
      <title>Pareto - accumulated sum  - sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1631260#M446475</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497" target="_blank" rel="noopener"&gt;community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am working on Complaints analysis.&amp;nbsp; For some of the reasons it doesn't work for me. I have an issue on the very beginning with sorting order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I follow instruction and create Pivot Table, setup sorting order as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20655iE059A04A7984B107/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My result you can see in table below.&lt;/P&gt;&lt;P&gt;Second column expression&amp;nbsp;=Sum(Complaint_Value)&lt;/P&gt;&lt;P&gt;Third Column expression&amp;nbsp;=RangeSum(Above(SUM(Complaint_Value), 0, RowNo()))&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Complaints Type&lt;/TD&gt;&lt;TD&gt;=Sum(Complaint_Value)&lt;/TD&gt;&lt;TD&gt;Accumulated Complaints&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 1&lt;/TD&gt;&lt;TD&gt;563&lt;/TD&gt;&lt;TD&gt;601&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 2&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;643&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 3&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 4&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;703&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 5&lt;/TD&gt;&lt;TD&gt;27&lt;/TD&gt;&lt;TD&gt;670&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 6&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;724&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type 7&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;713&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change sorting order as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20656iB93D5094554F672D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results are different but still incorrect:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Complaints Type&lt;/TD&gt;&lt;TD&gt;=Sum(Complaint_Value)&lt;/TD&gt;&lt;TD&gt;Accumulated Complaints&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 1&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 2&lt;/TD&gt;&lt;TD&gt;563&lt;/TD&gt;&lt;TD&gt;601&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 3&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;643&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 4&lt;/TD&gt;&lt;TD&gt;27&lt;/TD&gt;&lt;TD&gt;670&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 5&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;703&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 6&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;713&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type 7&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;724&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please advise? I have no more ideas how to solve this issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 20:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1631260#M446475</guid>
      <dc:creator>MS_UK</dc:creator>
      <dc:date>2019-10-03T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto - accumulated sum  - sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632193#M446527</link>
      <description>Hi,&lt;BR /&gt;I think you need to check 'Expression' as your sort option (3rd down, 2 above Numeric Value from your last screen shot) and enter the expression - Sum(Complaint_Value) - and check Descending.&lt;BR /&gt;Cheers,&lt;BR /&gt;Chris.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Oct 2019 19:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632193#M446527</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-10-07T19:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto - accumulated sum  - sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632293#M446530</link>
      <description>&lt;P&gt;In the sorting tab under the expression , use&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;RangeSum(Above(SUM(Complaint_Value), 0, RowNo())) for your sort&amp;nbsp; if you are looking to sort based on the accumulation . when you select sort based on Y-Value it takes the first expression&amp;nbsp;for&amp;nbsp;the sort which is why you got the sorting of the first expression&amp;nbsp;correctly&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 05:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632293#M446530</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-10-08T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto - accumulated sum  - sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632314#M446533</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;When you sort by "Y-Value" in a pivot table, it is sorted following &lt;STRONG&gt;the first expression.&amp;nbsp;&lt;/STRONG&gt;Said so, you may switch to straight table so you can sort the chart by any of the columns (I don't see the need of a pivot table in your example so, if you can use a straight table I would do it).&lt;/P&gt;&lt;P&gt;If you need to keep using a pivot, you can create a first column to sort the table (with "&lt;SPAN&gt;RangeSum(Above(SUM(Complaint_Value), 0, RowNo()))" in your case) and then completely hide the column (you can achieve this with a macro).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps!&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 06:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-accumulated-sum-sorting-issue/m-p/1632314#M446533</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-10-08T06:29:25Z</dc:date>
    </item>
  </channel>
</rss>

