<?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 Sorting a calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873529#M470034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar graph with a calculated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if (budget &amp;lt;= 100, 'bis ' &amp;amp; 100,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(budget &amp;gt; 100 and budget &amp;lt;= 200, 'bis ' &amp;amp; 200,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'bis' is the german word for 'up to'. The result is a diagram like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sorting_question.PNG" class="jive-image image-1" height="251" src="https://community.qlik.com/legacyfs/online/89094_sorting_question.PNG" style="height: 250.673846153846px; width: 257px;" width="257" /&gt;&lt;/P&gt;&lt;P&gt;As you see, the calculated dimension (x-axis) is not in the correct order. Correct would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bis 100&lt;/P&gt;&lt;P&gt;bis 200&lt;/P&gt;&lt;P&gt;bis 300&lt;/P&gt;&lt;P&gt;bis 400&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;bis 1000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not sort by number or by alphabetical order, the results are always wrong. But how can I sort such a dimension with an expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 12:00:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-11T12:00:05Z</dc:date>
    <item>
      <title>Sorting a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873529#M470034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar graph with a calculated dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if (budget &amp;lt;= 100, 'bis ' &amp;amp; 100,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(budget &amp;gt; 100 and budget &amp;lt;= 200, 'bis ' &amp;amp; 200,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'bis' is the german word for 'up to'. The result is a diagram like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sorting_question.PNG" class="jive-image image-1" height="251" src="https://community.qlik.com/legacyfs/online/89094_sorting_question.PNG" style="height: 250.673846153846px; width: 257px;" width="257" /&gt;&lt;/P&gt;&lt;P&gt;As you see, the calculated dimension (x-axis) is not in the correct order. Correct would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bis 100&lt;/P&gt;&lt;P&gt;bis 200&lt;/P&gt;&lt;P&gt;bis 300&lt;/P&gt;&lt;P&gt;bis 400&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;bis 1000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not sort by number or by alphabetical order, the results are always wrong. But how can I sort such a dimension with an expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873529#M470034</guid>
      <dc:creator />
      <dc:date>2015-06-11T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873530#M470035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use dual &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= if (budget &amp;lt;= 100, dual('bis &amp;amp; 100', 1),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(budget &amp;gt; 100 and budget &amp;lt;= 200, dual('bis 200',2),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and then sort them by numeric value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 15:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873530#M470035</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-11T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873531#M470036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked. Thank you very much. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 08:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873531#M470036</guid>
      <dc:creator />
      <dc:date>2015-06-12T08:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873532#M470037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 17:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873532#M470037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-19T17:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873533#M470038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank a lot Ramon, i was trying for this many times, you saved my time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-calculated-dimension/m-p/873533#M470038</guid>
      <dc:creator>madushanfernand</dc:creator>
      <dc:date>2018-08-15T08:07:14Z</dc:date>
    </item>
  </channel>
</rss>

