<?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 How to create a custom sorting in Dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200756#M59178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could take advantage of the load order sort and do something like this at the top of the script:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;RegionSort:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Region&lt;BR /&gt;London&lt;BR /&gt;Hong Kong&lt;BR /&gt;New York&lt;BR /&gt;];&lt;BR /&gt;CONCATENATE (RegionSort)&lt;BR /&gt;LOAD DISTINCT Region&lt;BR /&gt;FROM wherever&lt;BR /&gt;ORDER BY Region&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Then drop the table at the end of the script. I tend to mostly use load order when I need custom sort orders these days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 20:28:22 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-11-24T20:28:22Z</dc:date>
    <item>
      <title>How to create a custom sorting in Dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200752#M59174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a dimension called Region, for example, it contains values like London, New York, Hong Kong, Japan, Singapore, Australia ..... etc&lt;/P&gt;&lt;P&gt;I would like to show a table with the first Dimension as Region with a custom sorting. It should show first as London, second as Hong Kong, third as New York, for the remaining order it should sort in ascending alpahbetical order from A to Z.&lt;/P&gt;&lt;P&gt;The possible values of Region is not constant, it could be expanding with more countries adding into the Region list.&lt;/P&gt;&lt;P&gt;Any suggestion how to archive it?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 16:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200752#M59174</guid>
      <dc:creator />
      <dc:date>2010-11-24T16:39:52Z</dc:date>
    </item>
    <item>
      <title>How to create a custom sorting in Dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200753#M59175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your custom sortin static (always the same)?&lt;/P&gt;&lt;P&gt;If so, you can load an auxiliary table with the order you want:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Country, CountryOrder&lt;BR /&gt;Brazil, 1&lt;BR /&gt;Argentina, 2&lt;BR /&gt;USA, 3&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;then on the "sort" panel you select to sort by expression and use the expression =Only(CountryOrder)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 16:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200753#M59175</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-11-24T16:44:28Z</dc:date>
    </item>
    <item>
      <title>How to create a custom sorting in Dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200754#M59176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you mean that you want these cities on the top: London, second as Hong Kong, third as New York. And the other ones in alphabetical order?&lt;/P&gt;&lt;P&gt;Maybe if you create a flag like 'orderfield' and you put for example London -&amp;gt; OrderField 1. Hong Kong --&amp;gt;OrderField 2, NewYork --&amp;gt; OrderField :3. And the other ones put orderField : (big number like 99), and sort first for orderField, and the second parameter the alphabetical order.&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 16:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200754#M59176</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-11-24T16:45:58Z</dc:date>
    </item>
    <item>
      <title>How to create a custom sorting in Dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200755#M59177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the "Dual" functionality and use it to load a small table similar to the method that Fernado suggested. The dual functionality is for data items that have a dual nature - both a text value and a numeric value. The text value will show up in the chart dimension but the numeric value can be used for sorting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 20:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200755#M59177</guid>
      <dc:creator />
      <dc:date>2010-11-24T20:22:11Z</dc:date>
    </item>
    <item>
      <title>How to create a custom sorting in Dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200756#M59178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could take advantage of the load order sort and do something like this at the top of the script:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;RegionSort:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Region&lt;BR /&gt;London&lt;BR /&gt;Hong Kong&lt;BR /&gt;New York&lt;BR /&gt;];&lt;BR /&gt;CONCATENATE (RegionSort)&lt;BR /&gt;LOAD DISTINCT Region&lt;BR /&gt;FROM wherever&lt;BR /&gt;ORDER BY Region&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Then drop the table at the end of the script. I tend to mostly use load order when I need custom sort orders these days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 20:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-custom-sorting-in-Dimension/m-p/200756#M59178</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-24T20:28:22Z</dc:date>
    </item>
  </channel>
</rss>

