<?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: ranking with 2 step sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ranking-with-2-step-sort/m-p/439722#M163897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solve it by using macro and variables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 13:09:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-24T13:09:50Z</dc:date>
    <item>
      <title>ranking with 2 step sort</title>
      <link>https://community.qlik.com/t5/QlikView/ranking-with-2-step-sort/m-p/439721#M163896</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;I have table with fields:&lt;/P&gt;&lt;P&gt;contry, sale, cost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. rank customers by sale with some expression (please see additition file) main think: the most bigger customers those get 50% of total sale - rank "A", from 50%-80% - rank "B", from 80%-95% - rank "C", after 95% - rank "D". I use order by Sale desc field to get this.&lt;/P&gt;&lt;P&gt;2. rank customers by profit. I mean (sale / cost -1) (please see additition file) main think: the most bigger customers by (sale / cost -1) expression get 30% sale - rank "3", from 30%-70% - rank "2", after 70% - rank "1". I use order by (sale / cost -1) desc field to get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i need join 2 rank in 1. it will be like:&amp;nbsp; A3, A2, A1, B3, B2 .... and s.o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is sorting: if i change sorting field, i lose my rank. May be QV have some order inside dimention { }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, help if you can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 13:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ranking-with-2-step-sort/m-p/439721#M163896</guid>
      <dc:creator />
      <dc:date>2013-01-21T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: ranking with 2 step sort</title>
      <link>https://community.qlik.com/t5/QlikView/ranking-with-2-step-sort/m-p/439722#M163897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solve it by using macro and variables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 13:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ranking-with-2-step-sort/m-p/439722#M163897</guid>
      <dc:creator />
      <dc:date>2013-01-24T13:09:50Z</dc:date>
    </item>
  </channel>
</rss>

