<?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 sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514702#M436865</link>
    <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;Please help me with the below scenario&lt;/P&gt;&lt;P&gt;load * inline [&lt;BR /&gt;Products, Sales&lt;BR /&gt;P1, 123&lt;BR /&gt;P2, 234&lt;BR /&gt;P3, 345&lt;BR /&gt;P4, 456&lt;BR /&gt;P5, 567&lt;BR /&gt;P6, 678&lt;BR /&gt;P7, 789&lt;BR /&gt;P8, 891&lt;BR /&gt;P9, 911&lt;BR /&gt;P10, 124&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;With in a straight table, display the products whose rank(sales) ranges between 3 to 7 by using&lt;BR /&gt;1. Set Analysis with p()&lt;BR /&gt;2. By using the rank() in the if loop or other&lt;/P&gt;&lt;P&gt;Note:&lt;BR /&gt;The products should be from rank3 to rank7 in descending order.&lt;/P&gt;&lt;P&gt;I tried with the rownum() in the if loop, it is returning as per the rownum but not by the rank of sum. Any suggestions please.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 09:16:41 GMT</pubDate>
    <dc:creator>parvez933</dc:creator>
    <dc:date>2018-11-30T09:16:41Z</dc:date>
    <item>
      <title>sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514702#M436865</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;Please help me with the below scenario&lt;/P&gt;&lt;P&gt;load * inline [&lt;BR /&gt;Products, Sales&lt;BR /&gt;P1, 123&lt;BR /&gt;P2, 234&lt;BR /&gt;P3, 345&lt;BR /&gt;P4, 456&lt;BR /&gt;P5, 567&lt;BR /&gt;P6, 678&lt;BR /&gt;P7, 789&lt;BR /&gt;P8, 891&lt;BR /&gt;P9, 911&lt;BR /&gt;P10, 124&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;With in a straight table, display the products whose rank(sales) ranges between 3 to 7 by using&lt;BR /&gt;1. Set Analysis with p()&lt;BR /&gt;2. By using the rank() in the if loop or other&lt;/P&gt;&lt;P&gt;Note:&lt;BR /&gt;The products should be from rank3 to rank7 in descending order.&lt;/P&gt;&lt;P&gt;I tried with the rownum() in the if loop, it is returning as per the rownum but not by the rank of sum. Any suggestions please.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514702#M436865</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-11-30T09:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514707#M436867</link>
      <description>&lt;P&gt;&lt;STRONG&gt;StraightTable&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;PRE&gt;=if(aggr(rank(Sales),Products)&amp;gt;=3 and aggr(rank(Sales),Products)&amp;lt;=7,Products)&lt;/PRE&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;PRE&gt;sum(Sales)&lt;/PRE&gt;&lt;P&gt;and sort sum(Sales) in ascending order!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514707#M436867</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2018-11-30T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514720#M436869</link>
      <description>&lt;P&gt;I would do it like I showed at:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Sorting/m-p/1514705/highlight/false#M365929" target="_self"&gt;your other post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514720#M436869</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-30T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514730#M436870</link>
      <description>&lt;P&gt;Hey Frank!&lt;/P&gt;&lt;P&gt;I tried the way you suggested, but in the straight table I dint know why an extra row is showing in the bottom&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 325px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1344i03DA7CE39E9453D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help me!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514730#M436870</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-11-30T09:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514734#M436872</link>
      <description>&lt;P&gt;You will need to supress Null Values for your dimension&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.png" style="width: 392px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1345i6A27B60E798D79A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.png" alt="Unbenannt.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 10:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514734#M436872</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2018-11-30T10:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514743#M436873</link>
      <description>Hey Frank!&lt;BR /&gt;Thank you for your response. The case is solved. But I have a small query! what is the difference of using rank(sales) to rank(sum(sale)) in the above scenario.</description>
      <pubDate>Fri, 30 Nov 2018 10:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514743#M436873</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-11-30T10:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514746#M436874</link>
      <description>in your case using sum(Sales) will give you the extra value of 2283 for the Null values in your dimension. If you just use Sales you wont get the 2283. So i would prefer to always use sum(Sales) instead of just Sales</description>
      <pubDate>Fri, 30 Nov 2018 10:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514746#M436874</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2018-11-30T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: sort</title>
      <link>https://community.qlik.com/t5/QlikView/sort/m-p/1514747#M436875</link>
      <description>Thank You Frank! It got resolved.</description>
      <pubDate>Fri, 30 Nov 2018 10:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sort/m-p/1514747#M436875</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-11-30T10:20:02Z</dc:date>
    </item>
  </channel>
</rss>

