<?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: Custom sorting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695202#M1055991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They will sort properly &lt;STRONG&gt;if &lt;/STRONG&gt;they were created as dual() values. You would get a dual value if you used the month() function to extract from a date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the months come to you as a text value, you can create a proper dual like this:&lt;/P&gt;&lt;P&gt;month(Date#(monthField','MMM'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Oct 2014 13:09:20 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-10-25T13:09:20Z</dc:date>
    <item>
      <title>Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695199#M1055988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a month field.how to sort the month field&amp;nbsp; like -----&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;jan,feb,mar,....dec .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 12:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695199#M1055988</guid>
      <dc:creator>d_koti24</dc:creator>
      <dc:date>2014-10-25T12:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695200#M1055989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This ordenation is natural by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also select order by MonthNo(month)&amp;nbsp; in Ordenation Label, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 12:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695200#M1055989</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-10-25T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695201#M1055990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will sort by default ascending order or also you can use Sort option from the chart properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sortoptions.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69694_Sortoptions.png" style="width: 620px; height: 334px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 12:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695201#M1055990</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-25T12:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695202#M1055991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They will sort properly &lt;STRONG&gt;if &lt;/STRONG&gt;they were created as dual() values. You would get a dual value if you used the month() function to extract from a date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the months come to you as a text value, you can create a proper dual like this:&lt;/P&gt;&lt;P&gt;month(Date#(monthField','MMM'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 13:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695202#M1055991</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-10-25T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695203#M1055992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i wrote like this,its working fine.but i ve a small doubt,is there any performance issue by writing like this,&lt;/P&gt;&lt;P&gt;if(month='jan',1,if(month='feb',2,if(month='mar',3,if(month='apr',4,if(month='may',5,if(month='jun',6,if(month='july',7,if(month='aug',8,if(month='sep',9,if(month='oct',10,if(month='nov',11,12)))))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 13:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695203#M1055992</guid>
      <dc:creator>d_koti24</dc:creator>
      <dc:date>2014-10-25T13:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695204#M1055993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes might be you can use any sort order field also for this but you need to load a simple inline table in the load script and connect it with the month field see the example please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;apr&lt;/P&gt;&lt;P&gt;may&lt;/P&gt;&lt;P&gt;sep&lt;/P&gt;&lt;P&gt;oct&lt;/P&gt;&lt;P&gt;jun&lt;/P&gt;&lt;P&gt;jan&lt;/P&gt;&lt;P&gt;feb&lt;/P&gt;&lt;P&gt;mar&lt;/P&gt;&lt;P&gt;jul&lt;/P&gt;&lt;P&gt;aug&lt;/P&gt;&lt;P&gt;nov&lt;/P&gt;&lt;P&gt;dec&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrderTable:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Month,SortOrder&lt;/P&gt;&lt;P&gt;jan,1&lt;/P&gt;&lt;P&gt;feb,2&lt;/P&gt;&lt;P&gt;mar,3&lt;/P&gt;&lt;P&gt;apr,4&lt;/P&gt;&lt;P&gt;may,5&lt;/P&gt;&lt;P&gt;jun,6&lt;/P&gt;&lt;P&gt;jul,7&lt;/P&gt;&lt;P&gt;aug,8&lt;/P&gt;&lt;P&gt;sep,9&lt;/P&gt;&lt;P&gt;oct,10&lt;/P&gt;&lt;P&gt;nov,11&lt;/P&gt;&lt;P&gt;dec,12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you get&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="69695" alt="Sortorder.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69695_Sortorder.png" /&gt;&lt;/P&gt;&lt;P&gt;This can be done in any chart but with the help of the Expression sort order by using the &lt;STRONG&gt;SortOrder&lt;/STRONG&gt; field in the expression box&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="69696" alt="ExprSorder.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69696_ExprSorder.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 13:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695204#M1055993</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-25T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695205#M1055994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes if are memory intensive .they degrade the performance of application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Match or mixmatch(Month,'jan','feb','mar','apr',.....................................)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use inline query like anand in script(Control +E).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even sort expressions are degrading the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could try to sort in script itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 14:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695205#M1055994</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-10-25T14:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695206#M1055995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your example if() statement is probably the worst performing of the various suggestions here. But fine if it works for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach to sorting is to load the values in the order you want and then use "load order" for sort. Here's an explanation and example. &lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2012/11/establishing-a-sort-order/" style="font-size: 10pt; line-height: 1.5em;" title="http://qlikviewcookbook.com/2012/11/establishing-a-sort-order/"&gt;http://qlikviewcookbook.com/2012/11/establishing-a-sort-order/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 10:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-sorting/m-p/695206#M1055995</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-10-26T10:08:34Z</dc:date>
    </item>
  </channel>
</rss>

