<?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 unique manner in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258441#M397341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this in your expression for Sort by should work well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;If( Product = 'OTHER' , 0 , -Sum(Sales) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154453" alt="2017-02-25 QC-001.PNG" class="jive-image image-1" src="/legacyfs/online/154453_2017-02-25 QC-001.PNG" style="height: 385px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Feb 2017 12:55:29 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2017-02-25T12:55:29Z</dc:date>
    <item>
      <title>Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258434#M397334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have a below unique sort requirement wherein the client has requested the below logic to be applied.&lt;/P&gt;&lt;P&gt;The tables should show the sales in descending order but should keep the Product - 'OTHERS' as the last product even if the Sales may be max.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;130&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;H&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;OTHERS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;240&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise how to resolve this. In Sort tab, under expression, tried the below expression&lt;/P&gt;&lt;P&gt;if( [Product] &amp;lt;&amp;gt; 'OTHERS',rank([Sales]). Below is the result but Product 'Others' remains at the top instead of at the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;OTHERS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;240&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;130&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;H&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;98&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 04:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258434#M397334</guid>
      <dc:creator />
      <dc:date>2017-02-24T04:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258435#M397335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Match(PRODUCT,'OTHERS','X','B','H','D'),Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 04:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258435#M397335</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-02-24T04:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258436#M397336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Sales will change every week and as per the Sales value the table should be sorted in descending order and 'Others' must remain the last row ignoring the above ranking. I have Regions in another listbox, on selection, the Products will either go above or below as per the sales value hence cannot explicitly define the Product names in Match function.&amp;nbsp; The above solution does not give my required result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 04:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258436#M397336</guid>
      <dc:creator />
      <dc:date>2017-02-24T04:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258437#M397337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone please help with a solution to the sorting order issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 06:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258437#M397337</guid>
      <dc:creator />
      <dc:date>2017-02-25T06:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258438#M397338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If OTHERS is the result of the accumulation of the remaining unrelated values, the solution can be ordered by Y value but by setting a limit of 5 values and the rest in a total that is called OTHERS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 07:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258438#M397338</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2017-02-25T07:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258439#M397339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;if([Product] &amp;lt;&amp;gt; 'OTHERS','1',if([Product] ='OTHERS',rank([Sales])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 07:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258439#M397339</guid>
      <dc:creator>shivkumar300</dc:creator>
      <dc:date>2017-02-25T07:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258440#M397340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shinu,&lt;/P&gt;&lt;P&gt;in Sort Expression try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;&lt;SPAN style="color: #575757;"&gt;(Product &amp;lt;&amp;gt; 'OTHERS',Sum(Sales),0)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Antonio&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 09:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258440#M397340</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-02-25T09:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258441#M397341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this in your expression for Sort by should work well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;If( Product = 'OTHER' , 0 , -Sum(Sales) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154453" alt="2017-02-25 QC-001.PNG" class="jive-image image-1" src="/legacyfs/online/154453_2017-02-25 QC-001.PNG" style="height: 385px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 12:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258441#M397341</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-25T12:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting in unique manner</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258442#M397342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. You are a genius.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2017 14:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-in-unique-manner/m-p/1258442#M397342</guid>
      <dc:creator />
      <dc:date>2017-02-26T14:30:23Z</dc:date>
    </item>
  </channel>
</rss>

