<?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 Enforce Custom Sorting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328291#M120862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Abha, you can pull the "sortorder" column into your table, Sort it in Ascending order and Hide column sortorder...give it a try and see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 19:12:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-12T19:12:42Z</dc:date>
    <item>
      <title>Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328282#M120853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to enforce custom sorting to a table how can I do it. I want the table to be always in that sort order and it is not in alphabetical order. For example, I have fields in a table 'businessA', 'businessB', 'businessC', 'businessD' and 'businessE'. Now I need to sort in order as BusinessB,D,E,A,C . I want these fileds be sorted via loadscript. I did load them via inline load like &lt;/P&gt;&lt;P&gt;Tablename:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[businessType, sortorder&lt;/P&gt;&lt;P&gt;'businessA', 4&lt;/P&gt;&lt;P&gt;businessB', 1&lt;/P&gt;&lt;P&gt;businessC', 5&lt;/P&gt;&lt;P&gt;businessD', 2&lt;/P&gt;&lt;P&gt;businessE', 3];&lt;/P&gt;&lt;P&gt;and used =only(sortorder) while sorting but this doesnot get sorted once I used the table for cyclic group. How can I do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 16:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328282#M120853</guid>
      <dc:creator />
      <dc:date>2011-10-11T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328283#M120854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achive this by using "sort by expression". Attached the example, hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 16:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328283#M120854</guid>
      <dc:creator />
      <dc:date>2011-10-11T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328284#M120855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kiran for the answer, but I have already tried that and that is not what I wanted. What I wanted was when this table is loaded it will automatically sorted in this manner without using any wizards or options via script may be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 17:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328284#M120855</guid>
      <dc:creator />
      <dc:date>2011-10-11T17:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328285#M120856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is sort by Load order option ok to you? Then you can use the order by in resident load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 17:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328285#M120856</guid>
      <dc:creator />
      <dc:date>2011-10-11T17:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328286#M120857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you turn the businessType into a dual, then it will sort automatically (by value). This is your example, converted to produce a dual field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tablename:&lt;/P&gt;&lt;P&gt;Load Dual(businessType, sortorder) As businessType&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; businessType, sortorder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; businessA, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; businessB, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; businessC, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; businessD, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; businessE, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now QV will consider businessType to be a numeric type with value sortorder, and text representation 'businessA', 'businessB' etc. See the manual for more information on dual values. I also have some information at my blog, &lt;A href="http://yahqblog.blogspot.com/2011/04/understanding-duals.html"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 19:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328286#M120857</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-10-11T19:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328287#M120858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan, your script doesnot sort automatically in the sequence I originally talked about i.e. B-D-E-A-C .&lt;/P&gt;&lt;P&gt;I need the businesstype permanently sorted in this manner so we donot have to change in properties of any sheet objects but it automatically align itself in above mentioned sequence. Can this be acheived. Please guide me, I am fairly new to the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 16:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328287#M120858</guid>
      <dc:creator />
      <dc:date>2011-10-12T16:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328288#M120859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the sort order to be fixed at document level, go to Document properties-&amp;gt;Sort. Select the field and specify the sort order. That rule will be applied throught the document where this field is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 17:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328288#M120859</guid>
      <dc:creator />
      <dc:date>2011-10-12T17:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328289#M120860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Kiran. &lt;/P&gt;&lt;P&gt;Now one more query what if these fields are from a database table, How can we custom sort fields from a database table in the B-D-E-A-C sequence ? or can we even do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 17:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328289#M120860</guid>
      <dc:creator />
      <dc:date>2011-10-12T17:26:29Z</dc:date>
    </item>
    <item>
      <title>Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328290#M120861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the load order defined in the database or is custom?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 17:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328290#M120861</guid>
      <dc:creator />
      <dc:date>2011-10-12T17:27:54Z</dc:date>
    </item>
    <item>
      <title>Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328291#M120862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Abha, you can pull the "sortorder" column into your table, Sort it in Ascending order and Hide column sortorder...give it a try and see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 19:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328291#M120862</guid>
      <dc:creator />
      <dc:date>2011-10-12T19:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Custom Sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328292#M120863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dual values do work - I said that Qv will consider the value to be a numeric, so you need to the sort order to numeric for them to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That creates a permanent sort order for the field, so you don't need hidden sort fields or sort expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 08:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enforce-Custom-Sorting/m-p/328292#M120863</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-10-13T08:06:42Z</dc:date>
    </item>
  </channel>
</rss>

