<?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: Sort Order in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047143#M351923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add Calendar and sort on MonthNumber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 05:18:09 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2016-03-01T05:18:09Z</dc:date>
    <item>
      <title>Sort Order in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047138#M351918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculated dimension which is used in bar chart. The dimension is the combination of Month and Year fields. &lt;/P&gt;&lt;P&gt;I want to sort the calculated dimension according to the calendar. i.e. Jan 15, Feb 15, Mar 15....Jan 16, Feb 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What expression should I write while trying to sort the column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 04:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047138#M351918</guid>
      <dc:creator>sohb2015</dc:creator>
      <dc:date>2016-02-29T04:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047139#M351919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you combining the Month and Year on the front end or back end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 18:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047139#M351919</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T18:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047140#M351920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sohini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for sorting Month and Year you can use this expression: YY² + Num(Month)&lt;/P&gt;&lt;P&gt;As long as YY is greater or equal than 12 this works fine ascending or descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047140#M351920</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2016-02-29T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047141#M351921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd make a Month Year dimension defined as a date with a MMM YY format, and just sort numerically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;date(makedate(Year,Month),'MMM YY') as [Month Year]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to do it as a calculated dimension, again, just make it a date with a MMM YY format, and sort numerically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=date(makedate(Year,Month),'MMM YY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to avoid both calculated dimensions and sort expressions where practical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047141#M351921</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-02-29T19:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047142#M351922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of adding date sort expression, simply create the Calendar table from ascending values and select Load order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise add the Month No like 1,2,3 on the Master Calendar and use the Month No in your sort expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 02:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047142#M351922</guid>
      <dc:creator />
      <dc:date>2016-03-01T02:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Order in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047143#M351923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add Calendar and sort on MonthNumber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 05:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Order-in-expression/m-p/1047143#M351923</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2016-03-01T05:18:09Z</dc:date>
    </item>
  </channel>
</rss>

