<?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 ordering a calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ordering-a-calculated-Dimension/m-p/264149#M99334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When deriving your calculated dimension, use Dual instead of just text - that way you can manage the sort order numerically (truncated example):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Dim1 = 0, Dual('0',0), &lt;/P&gt;&lt;P&gt;if(Dim1 &amp;lt;= 10, Dual('1-10', 10),&lt;/P&gt;&lt;P&gt;if(Dim1 &amp;lt;=20, Dual('11-20', 20),&lt;/P&gt;&lt;P&gt;if(Dim1 &amp;lt;= 120, Dual('21-120', 120),&lt;/P&gt;&lt;P&gt;Dual('121+',121)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 14:14:32 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2012-02-08T14:14:32Z</dc:date>
    <item>
      <title>ordering a calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/ordering-a-calculated-Dimension/m-p/264148#M99333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a chart with a grouped calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is 0 1-10 11-20 21-30 31-40 41-50 51-56 57-70 70-90 91-120 121+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however the dimension on the graph is showing as 0 1-10 11-20 121+ 21-30 31-40 41-50 51-56 57-70 70-90 91-120&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas on how to solve this problem so that it is in the correct order of 0 1-10 11-20 21-30 31-40 41-50 51-56 57-70 70-90 91-120 121+ ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ordering-a-calculated-Dimension/m-p/264148#M99333</guid>
      <dc:creator />
      <dc:date>2012-02-08T14:04:03Z</dc:date>
    </item>
    <item>
      <title>ordering a calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/ordering-a-calculated-Dimension/m-p/264149#M99334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When deriving your calculated dimension, use Dual instead of just text - that way you can manage the sort order numerically (truncated example):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Dim1 = 0, Dual('0',0), &lt;/P&gt;&lt;P&gt;if(Dim1 &amp;lt;= 10, Dual('1-10', 10),&lt;/P&gt;&lt;P&gt;if(Dim1 &amp;lt;=20, Dual('11-20', 20),&lt;/P&gt;&lt;P&gt;if(Dim1 &amp;lt;= 120, Dual('21-120', 120),&lt;/P&gt;&lt;P&gt;Dual('121+',121)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ordering-a-calculated-Dimension/m-p/264149#M99334</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-02-08T14:14:32Z</dc:date>
    </item>
  </channel>
</rss>

