<?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 Numbering Month list in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700892#M53683</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a list of Month so would have to number them from 1,2,3,4 and so as as keeping the Max month as 1&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;Load Proposal Number,&lt;/P&gt;&lt;P&gt;MonthName&lt;/P&gt;&lt;P&gt;From xyz.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monthname will have Dec 2019&lt;/P&gt;&lt;P&gt;Jan 2020&lt;/P&gt;&lt;P&gt;Feb 2020&lt;/P&gt;&lt;P&gt;March 2020&lt;/P&gt;&lt;P&gt;April 2020&lt;/P&gt;&lt;P&gt;May 2020&lt;/P&gt;&lt;P&gt;June 2020&lt;/P&gt;&lt;P&gt;July 2020 and so on,&lt;/P&gt;&lt;P&gt;So here Max month i.e. May 2020 will be 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;April 2020 will be 2&lt;/P&gt;&lt;P&gt;March 2020 will be 3&lt;/P&gt;&lt;P&gt;Feb 2020 will be 4&lt;/P&gt;&lt;P&gt;Jan 2020 will be 5&lt;/P&gt;&lt;P&gt;Dec 2019 will be 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 04:40:48 GMT</pubDate>
    <dc:creator>priyasawant</dc:creator>
    <dc:date>2020-05-12T04:40:48Z</dc:date>
    <item>
      <title>Numbering Month list</title>
      <link>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700892#M53683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a list of Month so would have to number them from 1,2,3,4 and so as as keeping the Max month as 1&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;Load Proposal Number,&lt;/P&gt;&lt;P&gt;MonthName&lt;/P&gt;&lt;P&gt;From xyz.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monthname will have Dec 2019&lt;/P&gt;&lt;P&gt;Jan 2020&lt;/P&gt;&lt;P&gt;Feb 2020&lt;/P&gt;&lt;P&gt;March 2020&lt;/P&gt;&lt;P&gt;April 2020&lt;/P&gt;&lt;P&gt;May 2020&lt;/P&gt;&lt;P&gt;June 2020&lt;/P&gt;&lt;P&gt;July 2020 and so on,&lt;/P&gt;&lt;P&gt;So here Max month i.e. May 2020 will be 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;April 2020 will be 2&lt;/P&gt;&lt;P&gt;March 2020 will be 3&lt;/P&gt;&lt;P&gt;Feb 2020 will be 4&lt;/P&gt;&lt;P&gt;Jan 2020 will be 5&lt;/P&gt;&lt;P&gt;Dec 2019 will be 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 04:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700892#M53683</guid>
      <dc:creator>priyasawant</dc:creator>
      <dc:date>2020-05-12T04:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Numbering Month list</title>
      <link>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700895#M53684</link>
      <description>&lt;P&gt;Sort and number them like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;t1:
Load 
	Date(Date#(MonthName, 'MMM YYYY'),'MMM YYYY') as MonthName
Inline [
MonthName
Dec 2019
Jan 2020
Feb 2020
Mar 2020
Apr 2020
May 2020];

t2:
Load 
	MonthName,
	RowNo() as MonthNum
Resident t1 Order by MonthName Desc;

Drop Table t1; 	&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 218px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33386i217291648BEFD96A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 05:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700895#M53684</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-05-12T05:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Numbering Month list</title>
      <link>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700924#M53685</link>
      <description>&lt;P&gt;See script below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_1-1589266205561.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33395i0CF0AAE04F12A37F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_1-1589266205561.png" alt="Vegar_1-1589266205561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;SET vL.FirstMonthOfFiscalYear= 5;
[Numbering Month list]:
LOAD *,
  Month(MonthName) as Month,
  Year(MonthName) as Year,
  YearName([MonthName],0,$(vL.FirstMonthOfFiscalYear)) as FiscalYear,
  Dual(Date([MonthName],'MMM'), 
       Num(Month(Monthname([MonthName],-$(vL.FirstMonthOfFiscalYear)+1)))
       )  as FiscalMonth
;
//Below data equvialent to the example in your post
Load Monthname(Date) as MonthName, recno() as [Proposal Number] inline [
Date
2020-01-01
2020-01-15
2020-02-01
2020-02-15
2020-03-01
2020-03-15
2020-03-20
2020-04-01
2020-04-15
2020-05-01
2020-05-15
2020-06-01
2020-06-15
2020-06-20
2020-06-30
2020-07-01
2020-07-15
2020-08-01
2020-08-15
2020-09-01
2020-09-15
2020-10-01
2020-10-15
2020-11-01
2020-12-01
2020-12-15
2021-01-01
2021-02-16
2021-02-01
2021-02-15
2021-03-01
2021-03-15
2021-03-20
2021-04-01
2021-04-15
2021-05-01
2021-05-15
2021-06-01
2021-06-15
2021-06-20
2021-07-30
2021-07-01
2021-07-15
2021-07-01
2021-08-15
2021-09-01
2021-09-15
2021-10-01
2021-10-15
2021-11-01
2021-12-01
2021-12-15
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 06:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Numbering-Month-list/m-p/1700924#M53685</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-05-12T06:51:53Z</dc:date>
    </item>
  </channel>
</rss>

