<?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: Fiscal Calendar MonthStart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925983#M76226</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5905"&gt;@Lisa_P&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are sooo clever.. I made one small change and I think it's perfect. It is now:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;,if(month(FiscalDate) &amp;gt; 2,MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))), Num(Month(FiscalDate)-1),26)&lt;BR /&gt;, if(Month(FiscalDate)&amp;gt;1, MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))+1), Num(Month(FiscalDate)-1 ),26)&lt;BR /&gt;, MakeDate((Year(YearStart(FiscalDate,0, $(FirstMonthOfYear)))), 12, 26))) as [Fisc_MonthStart]&lt;/P&gt;
&lt;P&gt;I checked other years and Jan is always correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FiscCalendar.JPG" style="width: 861px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78571i0503B3297AA70D78/image-size/large?v=v2&amp;amp;px=999" role="button" title="FiscCalendar.JPG" alt="FiscCalendar.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 06:17:30 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2022-05-04T06:17:30Z</dc:date>
    <item>
      <title>Fiscal Calendar MonthStart</title>
      <link>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925951#M76224</link>
      <description>&lt;P&gt;Good morning.&lt;/P&gt;
&lt;P&gt;I am trying to define a Fiscal Calendar and have one field I cannot get to work correctly. That is the Fisc_MonthStart for January of the year. In the attached jpg file the field is empty but it should read ‘2021-12-26’. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;My fiscal year is from 26&lt;SUP&gt;th&lt;/SUP&gt; February to the following year 25&lt;SUP&gt;th&lt;/SUP&gt; February.&lt;/P&gt;
&lt;P&gt;Fisc_MonthStart is defined as below.&lt;/P&gt;
&lt;P&gt;if(month(FiscalDate) &amp;gt; 2,&lt;/P&gt;
&lt;P&gt;MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))), Num(Month(FiscalDate)-1),26)&lt;/P&gt;
&lt;P&gt;,MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))+1), Num(Month(FiscalDate)-1 ),26)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fisc_MonthStart]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FiscCalendar.JPG" style="width: 833px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78568i7F167876711E3033/image-size/large?v=v2&amp;amp;px=999" role="button" title="FiscCalendar.JPG" alt="FiscCalendar.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I include the qvf to show what I have this far. I really appreciate a solution for this.&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 02:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925951#M76224</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2022-05-04T02:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar MonthStart</title>
      <link>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925974#M76225</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;The problem is that when you were doing this calculation and the month was January (1), subtracting 1 gave a 0.&lt;/P&gt;&lt;P&gt;So I added another clause to the if condition like this:&lt;/P&gt;&lt;P&gt;////Issue&lt;BR /&gt;,if(month(FiscalDate) &amp;gt; 2,MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))), Num(Month(FiscalDate)-1),26)&lt;BR /&gt;, if(Month(FiscalDate)&amp;gt;1, MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))+1), Num(Month(FiscalDate)-1 ),26)&lt;BR /&gt;, MakeDate((Year(YearStart(FiscalDate, 0, $(FirstMonthOfYear)))+1), 1, 26))) as [Fisc_MonthStart]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it appears to rectify your issue.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 05:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925974#M76225</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2022-05-04T05:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal Calendar MonthStart</title>
      <link>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925983#M76226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5905"&gt;@Lisa_P&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are sooo clever.. I made one small change and I think it's perfect. It is now:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;,if(month(FiscalDate) &amp;gt; 2,MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))), Num(Month(FiscalDate)-1),26)&lt;BR /&gt;, if(Month(FiscalDate)&amp;gt;1, MakeDate((Year(YearStart(FiscalDate,0,$(FirstMonthOfYear)))+1), Num(Month(FiscalDate)-1 ),26)&lt;BR /&gt;, MakeDate((Year(YearStart(FiscalDate,0, $(FirstMonthOfYear)))), 12, 26))) as [Fisc_MonthStart]&lt;/P&gt;
&lt;P&gt;I checked other years and Jan is always correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FiscCalendar.JPG" style="width: 861px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78571i0503B3297AA70D78/image-size/large?v=v2&amp;amp;px=999" role="button" title="FiscCalendar.JPG" alt="FiscCalendar.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Fiscal-Calendar-MonthStart/m-p/1925983#M76226</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2022-05-04T06:17:30Z</dc:date>
    </item>
  </channel>
</rss>

