<?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: Sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474410#M1135199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried Match&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATCH(Fieldname,'Value1','Value2','Value3','Value4')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 21:48:02 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2013-10-15T21:48:02Z</dc:date>
    <item>
      <title>Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474407#M1135196</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;I want to make custom sort.&lt;/P&gt;&lt;P&gt;My dimension is&lt;/P&gt;&lt;P&gt;=if(&lt;A&gt;='Shop specific','Shop',if(&lt;/A&gt;&lt;A&gt;='Browse','Shop',if(&lt;/A&gt;&lt;A&gt;='Learn pricing','Shop',&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(&lt;A&gt;='Check order','Everything else',if(&lt;/A&gt;&lt;A&gt;='Manage account','Everything else',if(&lt;/A&gt;&lt;A&gt;='Support','Everything else',&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(&lt;A&gt;='Make purchase','Make a purchase')))))))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want Make a purchase&amp;nbsp; --1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Everything else&amp;nbsp;&amp;nbsp;&amp;nbsp; ---3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it easy?&amp;nbsp; in Load script use rank or use expression in sort?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 21:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474407#M1135196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T21:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474408#M1135197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding the expression in the sort by Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2013-10-15_2226_001.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/47687_2013-10-15_2226_001.png" style="width: 620px; height: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 21:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474408#M1135197</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-10-15T21:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474409#M1135198</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;I do usually, but now I coded each tag to custom. It doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 21:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474409#M1135198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T21:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474410#M1135199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried Match&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATCH(Fieldname,'Value1','Value2','Value3','Value4')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 21:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474410#M1135199</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-10-15T21:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474411#M1135200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried &lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Shop specific*'),2,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Browse*'),3,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Learn pricing*'),4,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Check order*'),5,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Manage account*'),6,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Support*'),7,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if(WildMatch(&lt;A&gt;,'Make purchase*'),1)))))))&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 21:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474411#M1135200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-15T21:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474412#M1135201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(&lt;A&gt;='Shop specific',&lt;STRONG&gt;dual('Shop',2)&lt;/STRONG&gt;,if(&lt;/A&gt;&lt;A&gt;='Browse',&lt;STRONG&gt;dual('Shop',2)&lt;/STRONG&gt;,if(&lt;/A&gt;&lt;A&gt;='Learn pricing',&lt;STRONG&gt;dual('Shop',2)&lt;/STRONG&gt;,&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;A&gt;='Check order',&lt;STRONG&gt;dual('Everything else',3)&lt;/STRONG&gt;,if(&lt;/A&gt;&lt;A&gt;='Manage account',&lt;STRONG&gt;dual('Everything else',3)&lt;/STRONG&gt;,if(&lt;/A&gt;&lt;A&gt;='Support',&lt;STRONG&gt;dual('Everything else',3)&lt;/STRONG&gt;,&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(&lt;A&gt;='Make purchase',&lt;STRONG&gt;dual('Make a purchase',1)&lt;/STRONG&gt;)))))))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and sort numeric.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;edit: Since since seems to be a static mapping, I would suggest that you create an additional field in your database in the LOAD for field &lt;A&gt;, not a calculated dimension (you can use a almost identical syntax as above, or a mapping load for that).&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 22:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474412#M1135201</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-15T22:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474413#M1135202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vladimir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One trick you might want to try out is using a LOAD * Inline statement to predefine the order in which the &lt;A&gt; field values should always be presented, especially if these values are static.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, prior to loading your data from the external source, add this part to your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp_A:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Make purchase&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Shop specific&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;Browse&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;Learn pricing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;Check order&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;Manage account&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #800000;"&gt;Support]&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The naming of the "A" field is important, it should be the same as the way you refer to it once your loading process is done.&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;At the end of your script the tmp_A table is no longer necessary, the order has been established. You may drop the tmp_A table as such:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DROP Table&lt;/SPAN&gt; tmp_A;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Once this is achieved, you can now start to use a fancy ordering method called "Load Order: Original", as illustrated below:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG __jive_id="47692" alt="LoadOrder.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/47692_LoadOrder.jpg" style="width: 620px; height: 343px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Once that option is selected, your dimension values shall be presented in the order they were first read into memory. Furthermore, using this option on dimensions with a lot a values is very fast!&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 23:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474413#M1135202</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2013-10-15T23:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Sort/m-p/474414#M1135203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. try use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATCH(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Make purchase*'&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'Shop specific*',&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'Browse*'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'Learn pricing*'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'Check order*'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'Manage account*'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'Support*'&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gernan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 01:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort/m-p/474414#M1135203</guid>
      <dc:creator />
      <dc:date>2013-10-16T01:12:51Z</dc:date>
    </item>
  </channel>
</rss>

