<?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: Sorting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514738#M748770</link>
    <description>p() and e() are elements of set analysis. If you know it when and where to use it, you could use them in aggregation functions (here sum(); both inner and outer). If you are not sure where, how.. I would request to explain more about your business case - to understand - even if that is at all required or not. If yes, we may give a try to show and help you how.</description>
    <pubDate>Fri, 30 Nov 2018 10:05:26 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-11-30T10:05:26Z</dc:date>
    <item>
      <title>Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514705#M748767</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.&lt;/P&gt;&lt;P&gt;I tried by using the rownum() in the if loop the data is sorting on basis of rownum(). But I need sort the data on the basis of rank of sales. Any suggestions please.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514705#M748767</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514717#M748768</link>
      <description>&lt;P&gt;Try like:&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;Products={"=Rank(Sum(Sales))&amp;gt;2 and Rank(Sum(Sales))&amp;lt;8"}&amp;gt;}Sales)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 483px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1343i4051A87222EAB876/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514717#M748768</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-30T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514726#M748769</link>
      <description>Hey MVP,&lt;BR /&gt;Thank you for the prompt reply. I tried the way you suggested it works. I was not sure using rank() in the set analysis.&lt;BR /&gt;Can you please help me how define the same logic using the p() or e() in the set analysis?</description>
      <pubDate>Fri, 30 Nov 2018 09:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514726#M748769</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-11-30T09:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514738#M748770</link>
      <description>p() and e() are elements of set analysis. If you know it when and where to use it, you could use them in aggregation functions (here sum(); both inner and outer). If you are not sure where, how.. I would request to explain more about your business case - to understand - even if that is at all required or not. If yes, we may give a try to show and help you how.</description>
      <pubDate>Fri, 30 Nov 2018 10:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514738#M748770</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-30T10:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514740#M748771</link>
      <description>Hey MVP,&lt;BR /&gt;I just refined your logic&lt;BR /&gt;=Sum({&amp;lt;Products=p({&amp;lt;Products={"=rank(sum(Sales))&amp;gt;2 and rank(Sum(Sales))&amp;lt;8"}&amp;gt;})&amp;gt;}Sales)&lt;BR /&gt;&lt;BR /&gt;and it is showing the required output.&lt;BR /&gt;Thank you!</description>
      <pubDate>Fri, 30 Nov 2018 10:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514740#M748771</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-11-30T10:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514898#M748772</link>
      <description>&lt;P&gt;try this expression instead of going set analysis in expression tab&lt;/P&gt;&lt;P&gt;i tried this one its working and paste the&amp;nbsp;below expression in sort tab also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression tab:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(rank(Sales)&amp;gt;=3 and rank(Sales)&amp;lt;=7,sum(Sales))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sort tab&lt;/P&gt;&lt;P&gt;=if(rank(Sales)&amp;gt;=3 and rank(Sales)&amp;lt;=7,rank(Sales))&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1514898#M748772</guid>
      <dc:creator>manoranjan_321988</dc:creator>
      <dc:date>2018-11-30T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting/m-p/1515142#M748773</link>
      <description>Hey Manoranjan,&lt;BR /&gt;&lt;BR /&gt;Thank You for your response.</description>
      <pubDate>Sat, 01 Dec 2018 03:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting/m-p/1515142#M748773</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-01T03:53:32Z</dc:date>
    </item>
  </channel>
</rss>

