<?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 months considering current month as the first month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526244#M1140170</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 want to have a chart that displays the information sorted in months i.e., i want current month-1 to appear as the first month,current month-2 to appear as the second month and so on upto current month-12 appearing as the last month in the chart.Can anyone help me accomplish this please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 11:48:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-16T11:48:22Z</dc:date>
    <item>
      <title>Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526244#M1140170</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 want to have a chart that displays the information sorted in months i.e., i want current month-1 to appear as the first month,current month-2 to appear as the second month and so on upto current month-12 appearing as the last month in the chart.Can anyone help me accomplish this please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 11:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526244#M1140170</guid>
      <dc:creator />
      <dc:date>2013-09-16T11:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526245#M1140171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;month-1, month-2... are your months right? if so, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Dual(MonthField, Num(SubField(MonthField,'-',2)) )&lt;/P&gt;&lt;P&gt; Or,&lt;/P&gt;&lt;P&gt;simply: = Num(SubField(MonthField,'-',2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be your custom sort expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 11:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526245#M1140171</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-16T11:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526246#M1140172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try the above two approaches by placing the expression given&amp;nbsp; in the expression field of sort tab in the chart but its not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 12:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526246#M1140172</guid>
      <dc:creator />
      <dc:date>2013-09-16T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526247#M1140173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your month field is numeric (or dual value like when created with the Month() function) you can use &lt;EM&gt;rank(month)&lt;/EM&gt; as expression for sorting. If it's a string value you'll have to create a numeric month in the script first. If you have a date field then use the monthstart function to create such a field: date(monthstart(MyDate),'MMM') as MyMonth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 12:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526247#M1140173</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-16T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526248#M1140174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data format dependency is there. Please upload a sample with small data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 12:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526248#M1140174</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-16T12:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526249#M1140175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rank(month) sorts the month as Jan,feb,Mar... dec but i need to sort it as aug(current month-1),jul(current month-2),jun(current month-3) and so on upto september which is (current month-12). I have acheived the same by using the following expression in the sort tab:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(My&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-1))&lt;BR /&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-2))&lt;BR /&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-3)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-4)),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-5)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-6)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-7)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-8)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-9))&lt;BR /&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-10)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-11)),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-12))) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But then it would be helpful if anyone could give an altenative method to acheive this as the method that i have been using seems to be more of hard coding &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 04:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526249#M1140175</guid>
      <dc:creator />
      <dc:date>2013-09-17T04:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526250#M1140176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PFA containing the application&lt;/P&gt;&lt;P&gt;I have achieved the sorting capability using the expression:&lt;/P&gt;&lt;P&gt;=match(MyMonth,Month(AddMonths(Date(Today()),-1))&lt;/P&gt;&lt;P&gt;,Month(AddMonths(Date(Today()),-2))&lt;/P&gt;&lt;P&gt;,Month(AddMonths(Date(Today()),-3)),Month(AddMonths(Date(Today()),-4)),&lt;/P&gt;&lt;P&gt;Month(AddMonths(Date(Today()),-5)),Month(AddMonths(Date(Today()),-6)),Month(AddMonths(Date(Today()),-7)),Month(AddMonths(Date(Today()),-8)),Month(AddMonths(Date(Today()),-9))&lt;/P&gt;&lt;P&gt;,Month(AddMonths(Date(Today()),-10)),Month(AddMonths(Date(Today()),-11)),Month(AddMonths(Date(Today()),-12)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But,can you please suggest an alternative method for the same as the one that I have been using seems more like hard coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Anushree Shetty,&lt;/P&gt;&lt;P&gt;+91 9535028666&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 04:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526250#M1140176</guid>
      <dc:creator />
      <dc:date>2013-09-17T04:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting months considering current month as the first month</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526251#M1140177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Anushree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There would be many other ways, this one just clicked now. Used expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Month(MyMonth)-Month(Today())&amp;lt;0, (Month(MyMonth)-Month(Today())+12),(Month(MyMonth)-Month(Today())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 04:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-months-considering-current-month-as-the-first-month/m-p/526251#M1140177</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-17T04:50:02Z</dc:date>
    </item>
  </channel>
</rss>

