<?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 Inline sort based on the latest month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371891#M138249</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 had some of the help in creating the below inline for a dashboard, but I need something to work it around in a diffrent way (i.e. if we are in april 2012 I want it to show in the chart as the last month and i am not shure how to amend this inline to give me the correct rank?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;ABC_Mth ,Month_No&lt;/P&gt;&lt;P&gt;Jan,1&lt;/P&gt;&lt;P&gt;Feb,2&lt;/P&gt;&lt;P&gt;Mar,3&lt;/P&gt;&lt;P&gt;Apr,4&lt;/P&gt;&lt;P&gt;May,5&lt;/P&gt;&lt;P&gt;Jun,6&lt;/P&gt;&lt;P&gt;Jul,7&lt;/P&gt;&lt;P&gt;Aug,8&lt;/P&gt;&lt;P&gt;Sep,9&lt;/P&gt;&lt;P&gt;Oct,10&lt;/P&gt;&lt;P&gt;Nov,11&lt;/P&gt;&lt;P&gt;Dec,12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would apprecite if I can get some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example of what i would like to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Date(today(),'MMM'),1&lt;/P&gt;&lt;P&gt;if(Date(addmonths(today(),-1),'MMM'),2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Redha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 09:22:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-27T09:22:14Z</dc:date>
    <item>
      <title>Inline sort based on the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371891#M138249</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 had some of the help in creating the below inline for a dashboard, but I need something to work it around in a diffrent way (i.e. if we are in april 2012 I want it to show in the chart as the last month and i am not shure how to amend this inline to give me the correct rank?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;ABC_Mth ,Month_No&lt;/P&gt;&lt;P&gt;Jan,1&lt;/P&gt;&lt;P&gt;Feb,2&lt;/P&gt;&lt;P&gt;Mar,3&lt;/P&gt;&lt;P&gt;Apr,4&lt;/P&gt;&lt;P&gt;May,5&lt;/P&gt;&lt;P&gt;Jun,6&lt;/P&gt;&lt;P&gt;Jul,7&lt;/P&gt;&lt;P&gt;Aug,8&lt;/P&gt;&lt;P&gt;Sep,9&lt;/P&gt;&lt;P&gt;Oct,10&lt;/P&gt;&lt;P&gt;Nov,11&lt;/P&gt;&lt;P&gt;Dec,12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would apprecite if I can get some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example of what i would like to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Date(today(),'MMM'),1&lt;/P&gt;&lt;P&gt;if(Date(addmonths(today(),-1),'MMM'),2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Redha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 09:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371891#M138249</guid>
      <dc:creator />
      <dc:date>2012-04-27T09:22:14Z</dc:date>
    </item>
    <item>
      <title>Inline sort based on the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371892#M138250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You mean you need to show the latest month as First?&lt;/P&gt;&lt;P&gt;Ex:this month is April then you need order like&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Apr,4&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;May,5&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Jun,6&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Jul,7&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Aug,8&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Sep,9&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Oct,10&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Nov,11&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Dec,12&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Jan,1&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Feb,2&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Mar,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 09:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371892#M138250</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-27T09:30:01Z</dc:date>
    </item>
    <item>
      <title>Inline sort based on the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371893#M138251</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;You are right, but I believe I haven't really explained properly.&lt;/P&gt;&lt;P&gt;as my chart works on 13 months rolling I need it to show always the month we are in like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if in a month time we are in May I need it to show as the last month in the chart is May and going back ward to 13 month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this helps, here is my expression in my chart at the moment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(sum(if(ABC_Mth_Yr&amp;gt;=AddMonths(Today(),-13) and ABC_Mth_Yr&amp;lt;=AddMonths(Today(),0),NET_SALE)),ISSUE_DATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, wherever is ABC_Mth_Yr&amp;lt;=AddMonths(Today(),0) needs to be the last point on the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 09:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371893#M138251</guid>
      <dc:creator />
      <dc:date>2012-04-27T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Inline sort based on the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371894#M138252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use MonthName(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;ABC_Mth_Yr&lt;/SPAN&gt;) as Dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In which you can sort easily.&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 09:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371894#M138252</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-27T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Inline sort based on the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371895#M138253</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;You are right, but the problem I've got is I have two expressions to add in as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;avg(aggr(sum(if(ABC_Mth_Yr&amp;gt;=AddMonths(Today(),-13) and ABC_Mth_Yr&amp;lt;=AddMonths(Today(),0),NET_SALE)),ISSUE_DATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the other is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #eef4f9; font-family: Arial;"&gt;avg(aggr(sum(if(ABC_Mth_Yr&amp;gt;=AddMonths(Today(),-26) and ABC_Mth_Yr&amp;lt;=AddMonths(Today(),-13),NET_SALE)),ISSUE_DATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #eef4f9; font-family: Arial;"&gt;and that wont show properly in one chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; font-family: Arial;"&gt;Redha&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 10:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371895#M138253</guid>
      <dc:creator />
      <dc:date>2012-04-27T10:02:06Z</dc:date>
    </item>
    <item>
      <title>Inline sort based on the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371896#M138254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ok then try like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD *,if(Num(MonthNo)&amp;gt;=Month(Today()),MonthNo,MonthNo*100) as MonthSort INLINE &lt;/P&gt;&lt;P&gt;[Month, MonthNo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; June, 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; July, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug, 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sep, 9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Oct, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nov, 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec, 12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Sort by expression as MonthSort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 10:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inline-sort-based-on-the-latest-month/m-p/371896#M138254</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-04-27T10:10:06Z</dc:date>
    </item>
  </channel>
</rss>

