<?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: How do I get the sorting displayed correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-sorting-displayed-correctly/m-p/939897#M951273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to first create a small inline table in the script with the values in the order you want them sorted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Length of Service&lt;/P&gt;&lt;P&gt;0-2&lt;/P&gt;&lt;P&gt;3-5&lt;/P&gt;&lt;P&gt;5-10&lt;/P&gt;&lt;P&gt;&amp;gt;10 years&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put that above the part that calculates the Length of Service field from the Column10 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way the default sort order (By Load order) is determined by the Sort table you create first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 18:18:39 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-12-02T18:18:39Z</dc:date>
    <item>
      <title>How do I get the sorting displayed correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-sorting-displayed-correctly/m-p/939896#M951272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Column10 &amp;gt;0 and Column10 &amp;lt;=2, '0-2',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Column10 &amp;gt; 2 and Column10 &amp;lt;=5, '3-5',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Column10 &amp;gt;5 and Column10 &amp;lt;=10, '5-10',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Column10 &amp;gt; 10, '&amp;gt;10 years'))))&amp;nbsp; as [Length of Service],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would like to use dual if possible.&lt;/P&gt;&lt;P&gt;I know I can a prepend on the values by using 1:0-2 and then using subfield in my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering what are the possibilities here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see the order as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0-2&lt;/P&gt;&lt;P&gt;3-5&lt;/P&gt;&lt;P&gt;5-10&lt;/P&gt;&lt;P&gt;&amp;gt;10 years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107894_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-sorting-displayed-correctly/m-p/939896#M951272</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2015-12-02T18:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the sorting displayed correctly</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-sorting-displayed-correctly/m-p/939897#M951273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to first create a small inline table in the script with the values in the order you want them sorted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Length of Service&lt;/P&gt;&lt;P&gt;0-2&lt;/P&gt;&lt;P&gt;3-5&lt;/P&gt;&lt;P&gt;5-10&lt;/P&gt;&lt;P&gt;&amp;gt;10 years&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put that above the part that calculates the Length of Service field from the Column10 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way the default sort order (By Load order) is determined by the Sort table you create first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-sorting-displayed-correctly/m-p/939897#M951273</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-02T18:18:39Z</dc:date>
    </item>
  </channel>
</rss>

