<?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: Numeric and Custome sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455152#M169800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried your mix like this (use as sort by expression for your dimension):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(match(Vendor,'Other/Fcst'), 1000, sum(VALUE) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE is the field name you are using to calculate your share from (I assumed you are using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(VALUE) / sum(total VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the share calculcation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 15:13:22 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-04-15T15:13:22Z</dc:date>
    <item>
      <title>Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455146#M169794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A question concerning column sort for straight table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with several market shares. &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="38841" class="jive-image" alt="MS.png" src="https://community.qlik.com/legacyfs/online/38841_MS.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sort these market shares by numeric value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also want to keep the line Other/Fcst at the very end of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to mix both Custom sort and Numeric sort??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using Match() function and numeric sort in the sort parameters but without success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue is most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455146#M169794</guid>
      <dc:creator>jonathan_dau</dc:creator>
      <dc:date>2013-04-15T14:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455147#M169795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the sort tab:&lt;/P&gt;&lt;P&gt;1) Vendor: use the expression and set it to: if(Vendor='Other/Fcst',2.1) &lt;/P&gt;&lt;P&gt;2) in the value field set numeric order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jhopeit helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455147#M169795</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-04-15T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455148#M169796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add another expression: if(Vendor='Other/Fcst',1,0). Then sort first numerically on the new expression and then on the market share expression. Then hide the new expression. See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455148#M169796</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-15T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455149#M169797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use MarketShare as Dimension rather than Expression, if it is a field in your data model.&amp;nbsp; In this case you can sort it by Expression:&lt;/P&gt;&lt;P&gt;if(Vendor='Other/Fcst', -1, MarketShare)&lt;/P&gt;&lt;P&gt;If it is not a field, you still can use this solution creating calculated dimension, and the sort expression will be more complex.&lt;/P&gt;&lt;P&gt;The limitation of this solution is that it works only for Decending order.&amp;nbsp; In Accesnding, "Others" go on top.&amp;nbsp; Obviously for Accending you need something like this to move it to the bottom:&lt;/P&gt;&lt;P&gt;if(Vendor='Other/Fcst', 100, MarketShare)&lt;BR /&gt;So, my suggestion is rather a "hint" than "solution"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455149#M169797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T14:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455150#M169798</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;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Total&amp;lt;&amp;gt;'Other',Total) the expression of the classification. Look at the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455150#M169798</guid>
      <dc:creator />
      <dc:date>2013-04-15T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455151#M169799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in sort tab ..select expression (sort&amp;nbsp; by expression ) and inculde marketshare field in it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455151#M169799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T14:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455152#M169800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried your mix like this (use as sort by expression for your dimension):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(match(Vendor,'Other/Fcst'), 1000, sum(VALUE) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE is the field name you are using to calculate your share from (I assumed you are using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(VALUE) / sum(total VALUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the share calculcation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 15:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455152#M169800</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-15T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455153#M169801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gysbert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I used your solution and it works great !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all of you guys for your answers, I didn't take a clear look at all of them but I am sure they're good as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 15:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455153#M169801</guid>
      <dc:creator>jonathan_dau</dc:creator>
      <dc:date>2013-04-15T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Custome sort</title>
      <link>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455154#M169802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer I was thinking of using Market Share as a dimension or calculated dimension, but it seems a little bit too complex.&lt;/P&gt;&lt;P&gt;Thanks for the hint anyway. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 15:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Numeric-and-Custome-sort/m-p/455154#M169802</guid>
      <dc:creator>jonathan_dau</dc:creator>
      <dc:date>2013-04-15T15:25:19Z</dc:date>
    </item>
  </channel>
</rss>

