<?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 Percentage Change Ranking in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829668#M1018406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with values for different countries and years like this:&lt;/P&gt;&lt;P&gt;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No&lt;/P&gt;&lt;P&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201516&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201415&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4500&lt;/P&gt;&lt;P&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201314&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4000&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201516&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201415&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 250&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201314&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 275&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the percentage change between the years (which I have done using the below calculation (with some set analysis)&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;[Exclusions]={'0'}&amp;gt;}[FTE])/below(sum({$&amp;lt;[Exclusions]={'0'}&amp;gt;}[FTE])) -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to be able to do is sort the table so that the country with the highest percentage change is at the top. How do I do this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 13:08:23 GMT</pubDate>
    <dc:creator>alisonpwallis</dc:creator>
    <dc:date>2015-03-31T13:08:23Z</dc:date>
    <item>
      <title>Percentage Change Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829668#M1018406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with values for different countries and years like this:&lt;/P&gt;&lt;P&gt;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No&lt;/P&gt;&lt;P&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201516&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5000&lt;/P&gt;&lt;P&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201415&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4500&lt;/P&gt;&lt;P&gt;England&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201314&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4000&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201516&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201415&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 250&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201314&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 275&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the percentage change between the years (which I have done using the below calculation (with some set analysis)&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;[Exclusions]={'0'}&amp;gt;}[FTE])/below(sum({$&amp;lt;[Exclusions]={'0'}&amp;gt;}[FTE])) -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to be able to do is sort the table so that the country with the highest percentage change is at the top. How do I do this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829668#M1018406</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2015-03-31T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Change Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829669#M1018407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you change the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Country,year,No&lt;/P&gt;&lt;P&gt;England,201516,5000&lt;/P&gt;&lt;P&gt;England,201415,4500&lt;/P&gt;&lt;P&gt;England,201314,4000&lt;/P&gt;&lt;P&gt;India,201516,300&lt;/P&gt;&lt;P&gt;India,201415,250&lt;/P&gt;&lt;P&gt;India,201314,275&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Country=Previous(Country),&lt;/P&gt;&lt;P&gt;&amp;nbsp; round(No/Previous(No)-1,0.001),0) as Dif&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp; t1&lt;/P&gt;&lt;P&gt;Order By&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp; year&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table&lt;/P&gt;&lt;P&gt;&amp;nbsp; t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnen you can create straight table with expression Dif.&lt;/P&gt;&lt;P&gt;You can hide it or show. Also you can use it in sorting tab.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="82477" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82477_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829669#M1018407</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-03-31T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Change Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829670#M1018408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to sort, but the calculation logic is based on calendar sort. If set analysis would evaluate the conditions for each row, you might stand a chance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your option is to bring previous year value on the same row with the current year and calculate the percentage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829670#M1018408</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-31T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Change Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829671#M1018409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I can't change the load since the totals for each country are a sum - I have a record for each person and I sum the total for each country in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, your suggestion sounds really useful anyway for other things. I will make a note of it and use it for something else!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829671#M1018409</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2015-04-01T13:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage Change Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829672#M1018410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this but ended up with a percentage rather than percentage change (so I got 107% rather than 7%). I've asked the users and compromised on sorting the table by the country with the highest number rather than the highest percentage change - using an expression in the custom sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-Change-Ranking/m-p/829672#M1018410</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2015-04-01T13:21:55Z</dc:date>
    </item>
  </channel>
</rss>

