<?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 Controlling sort sequence in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239320#M89961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the nested 'if' and the 'mixmatch' option and both work - GREAT, thanks.&lt;/P&gt;&lt;P&gt;But I also prefer John's second suggestion which deals with the issue at source and would prove much more effecient in the long run.&lt;/P&gt;&lt;P&gt;Im now trying to test the same 'mixmatch' on a cyclic dimension, can anyone help.?&lt;/P&gt;&lt;P&gt;I've tried:-&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;, 'A','C','B', &lt;STRONG&gt;Dimension3&lt;/STRONG&gt;, 'one','three','two')&lt;/P&gt;&lt;P&gt;I also tried:-&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;, 'A','C','B')&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension3&lt;/STRONG&gt;, 'one','three','two')&lt;/P&gt;&lt;P&gt;I also tried:-&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;, 'A','C','B')&lt;/P&gt;&lt;P&gt;OR mixmatch(&lt;STRONG&gt;Dimension3&lt;/STRONG&gt;, 'one','three','two')&lt;/P&gt;&lt;P&gt;None of them work on all the dimensions. . . . . . . . .&lt;/P&gt;&lt;P&gt;Can anyone help please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jul 2010 15:15:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-06T15:15:17Z</dc:date>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239312#M89953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have set of six pie charts on a dashboard that compare data between companies and highlight issues for actions.&lt;/P&gt;&lt;P&gt;The single dimension is a text value, created in a run script, that describes the issue.&lt;/P&gt;&lt;P&gt;I want each pie chart legent to be in the same sequence, regardless of text, frequency, load value etc. I want it to be dependant on the issue severity, but none of the regular sort features gives me what I need.&lt;/P&gt;&lt;P&gt;There are a maximum of 6 dimension values that have known content,&lt;/P&gt;&lt;P&gt;So for example, The values are A B C D E F and I want every pie chart to show the legend in the sequence..&lt;/P&gt;&lt;P&gt;ACDFEB&lt;/P&gt;&lt;P&gt;The only option seems to be the sort expression but the help text gives no guidelines on how to do what I want.&lt;/P&gt;&lt;P&gt;I could put a priority number in front of text in run script i,e,&lt;/P&gt;&lt;P&gt;1A 2C 3D 4F 5E 6B, but I want to avoid that if I can.&lt;/P&gt;&lt;P&gt;Does anybody know how I short format the sort expression to get what I need?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alan Pollard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 10:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239312#M89953</guid>
      <dc:creator />
      <dc:date>2009-11-12T10:07:39Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239313#M89954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you can use mixmatch function in sort expression. Here is explanation from QV Help:&lt;/P&gt;&lt;P&gt;Example: mixmatch( M, 'Jan','Feb','Mar')&lt;/P&gt;&lt;P&gt;returns 1 if M = jan&lt;/P&gt;&lt;P&gt;In your case will be:&lt;/P&gt;&lt;P&gt;mixmatch(YourFieldName, 'A','B','C','D','E','F')&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 13:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239313#M89954</guid>
      <dc:creator />
      <dc:date>2009-11-12T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239314#M89955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan's approach is a good one but for your sort order:&lt;/P&gt;&lt;P&gt;mixmatch(YourFieldName, 'A','C','D','F','E','B')&lt;/P&gt;&lt;P&gt;Probably unnecessary clarification &lt;IMG alt="Angel" src="http://community.qlik.com/emoticons/emotion-13.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 13:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239314#M89955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239315#M89956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if someone have a problem and he provided with some data example i prefer after explanation to write the solution with his data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; sometimes its unnecessary and for this case i was wake up 5 min before i answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 14:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239315#M89956</guid>
      <dc:creator />
      <dc:date>2009-11-12T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239316#M89957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan ,&lt;/P&gt;&lt;P&gt;Under the Properties-&amp;gt;sort tab -&amp;gt; Expression , you can write&lt;/P&gt;&lt;P&gt;if(dimension ='A',1,&lt;/P&gt;&lt;P&gt;if(dimension ='C',2,&lt;/P&gt;&lt;P&gt;if(dimension ='D',3,&lt;/P&gt;&lt;P&gt;if(dimension ='F',4,&lt;/P&gt;&lt;P&gt;if(dimension ='E',5&lt;/P&gt;&lt;P&gt;if(dimension ='B',6&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;P&gt;And then give a descending option for the same.&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;Regards ,&lt;/P&gt;&lt;P&gt;Poorva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 15:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239316#M89957</guid>
      <dc:creator />
      <dc:date>2009-11-12T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239317#M89958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan ,&lt;/P&gt;&lt;P&gt;Under the Properties-&amp;gt;sort tab -&amp;gt; Expression , you can write&lt;/P&gt;&lt;P&gt;if(dimension ='A',1,&lt;/P&gt;&lt;P&gt;if(dimension ='C',2,&lt;/P&gt;&lt;P&gt;if(dimension ='D',3,&lt;/P&gt;&lt;P&gt;if(dimension ='F',4,&lt;/P&gt;&lt;P&gt;if(dimension ='E',5,&lt;/P&gt;&lt;P&gt;if(dimension ='B',6,&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;P&gt;And then give a ascending option for the same.&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;Regards ,&lt;/P&gt;&lt;P&gt;Poorva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 15:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239317#M89958</guid>
      <dc:creator />
      <dc:date>2009-11-12T15:31:54Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239318#M89959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A big thanks for all the reponses. The mixmatch worked perfectly.&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 02:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239318#M89959</guid>
      <dc:creator />
      <dc:date>2009-11-13T02:31:09Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239319#M89960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple other approaches:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use the dual() function to associate a numeric value with each text value, then sort in numeric order.&lt;/LI&gt;&lt;LI&gt;Load the possible text values in their own table in your desired sequence before loading the main data, then sort in original load order.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 05:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239319#M89960</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-11-13T05:20:35Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239320#M89961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the nested 'if' and the 'mixmatch' option and both work - GREAT, thanks.&lt;/P&gt;&lt;P&gt;But I also prefer John's second suggestion which deals with the issue at source and would prove much more effecient in the long run.&lt;/P&gt;&lt;P&gt;Im now trying to test the same 'mixmatch' on a cyclic dimension, can anyone help.?&lt;/P&gt;&lt;P&gt;I've tried:-&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;, 'A','C','B', &lt;STRONG&gt;Dimension3&lt;/STRONG&gt;, 'one','three','two')&lt;/P&gt;&lt;P&gt;I also tried:-&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;, 'A','C','B')&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension3&lt;/STRONG&gt;, 'one','three','two')&lt;/P&gt;&lt;P&gt;I also tried:-&lt;/P&gt;&lt;P&gt;=mixmatch(&lt;STRONG&gt;Dimension1&lt;/STRONG&gt;, 'A','C','B')&lt;/P&gt;&lt;P&gt;OR mixmatch(&lt;STRONG&gt;Dimension3&lt;/STRONG&gt;, 'one','three','two')&lt;/P&gt;&lt;P&gt;None of them work on all the dimensions. . . . . . . . .&lt;/P&gt;&lt;P&gt;Can anyone help please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 15:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239320#M89961</guid>
      <dc:creator />
      <dc:date>2010-07-06T15:15:17Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239321#M89962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it would be like this if you want to stick with that approach:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;=mixmatch("Group Name",'A','C','B','one','three','two')&lt;/P&gt;&lt;P&gt;When dealing with a cyclic group, you don't refer to the fields directly, but rather to the group itself. When dimension 1 is selected, it will be compared to the list, and give you a value of 1, 2 or 3 to sort by. When dimension 3 is selected, it will be compared to the list, and give you a value of 4, 5 or 6 to sort by. You could have problems if you can have the same value in more than one field, though, which is a hint to me that this isn't really the right approach, even if you can make it work for your specific case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 19:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239321#M89962</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-06T19:05:53Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239322#M89963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Superb John, many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 15:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239322#M89963</guid>
      <dc:creator />
      <dc:date>2010-07-07T15:08:17Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239323#M89964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been through this post and have found many useful ways of sorting especially the post about sorting within a group dimension. Even so I am struggling with the group I have created in the attached example. The group is multilevel and needs to be sorted as follows:&lt;/P&gt;&lt;P&gt;1&amp;gt; Quarter-Year , needs to be sorted logically by year-quarter&lt;/P&gt;&lt;P&gt;2&amp;gt; TPP - Sort order is HCD,ECD,DCD,SCD (always does not matter what numbers they show except if one is 0)&lt;/P&gt;&lt;P&gt;3&amp;gt; Month - Logical&lt;/P&gt;&lt;P&gt;4&amp;gt; Days of the month - Logical&lt;/P&gt;&lt;P&gt;I have spent several hours trying to test this to be correct. Any help appreciated. MAny thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 08:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239323#M89964</guid>
      <dc:creator />
      <dc:date>2010-07-20T08:49:38Z</dc:date>
    </item>
    <item>
      <title>Controlling sort sequence</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239324#M89965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same kind of requirements. I have a slider, where i want to sort the months based on my requirements. However, The expression is disabled in the sort table, and i cannot sort it using expression. Do you have any idea why is the sort expression disabled? Can you please suggest any otherway to do it&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 14:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-sort-sequence/m-p/239324#M89965</guid>
      <dc:creator />
      <dc:date>2011-02-22T14:12:43Z</dc:date>
    </item>
  </channel>
</rss>

