<?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 Sort last months (including last year months) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196379#M588138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a possible solution:&lt;/P&gt;&lt;P&gt;On Sort tab, select Month dimension (called Mnt) and check Expression with the following:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if(Mnt&amp;gt;Month(Today()),-1*(Month(Today())-Mnt),(Month(Today())-Mnt))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 09:51:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-04T09:51:52Z</dc:date>
    <item>
      <title>Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196375#M588134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a line chart showing last 4 months data. (Dec'10 - Jan'11 - Feb'11 - Mar'11), but month dimension shows months sorted by its numeric value (Jan - Feb - Mar - Dec)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I sort these months without year information)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196375#M588134</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:46:11Z</dc:date>
    </item>
    <item>
      <title>Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196376#M588135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered/tried sorting by Year-Month value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196376#M588135</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:48:52Z</dc:date>
    </item>
    <item>
      <title>Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196377#M588136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, incomplete previous post. Sorting by Year-Month value as sort by expression in sort tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196377#M588136</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re. :Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196378#M588137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;one solution is to include an "ORDER BY [Month column]" in your "Load" and use the sort "Load order" for this dimension in your report.&lt;/P&gt;&lt;P&gt;kindly,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196378#M588137</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:51:41Z</dc:date>
    </item>
    <item>
      <title>Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196379#M588138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a possible solution:&lt;/P&gt;&lt;P&gt;On Sort tab, select Month dimension (called Mnt) and check Expression with the following:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if(Mnt&amp;gt;Month(Today()),-1*(Month(Today())-Mnt),(Month(Today())-Mnt))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196379#M588138</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196380#M588139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, for rolling N-months analytical objects, you can create an extra line in your calendar, such as:&lt;/P&gt;&lt;P&gt;autonumber(date(monthstart(Date), 'YYYYMM'), 99) as YMNum.&lt;/P&gt;&lt;P&gt;Then on set analysis side, you set the expression for your N-rolling month to, e.g.:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YMNum={$(=max(YMNum))}, Year=, Month=, Day=&amp;gt;} Sales) and sum({$&amp;lt;YMNum={$(=max(YMNum)-1)}, Year=, Month=, Day=&amp;gt;} Sales),&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YMNum={$(=max(YMNum)-2)}, Year=, Month=, Day=&amp;gt;} Sales), etc.&lt;/P&gt;&lt;P&gt;Then you can set your dynamic label as you wish by copying the related set analysis statement and use in with the only() function, e.g. for the first expression above the dynamic label is: only({$&amp;lt;YMNum={$(=max(YMNum))}, Year=, Month=, Day=&amp;gt;} Month).&lt;/P&gt;&lt;P&gt;Hope that's what you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196380#M588139</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Sort last months (including last year months)</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196381#M588140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very useful! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-last-months-including-last-year-months/m-p/196381#M588140</guid>
      <dc:creator />
      <dc:date>2011-04-04T09:57:30Z</dc:date>
    </item>
  </channel>
</rss>

