<?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 Create Master Calendar for End of Month reporting date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791649#M61918</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I want to create End of Month reporting date field for last 12 months so that I can use it as a dimension in my QlikSense reports.&lt;/P&gt;&lt;P&gt;E.g. monthend(today()) = 31-03-2021&lt;/P&gt;&lt;P&gt;I want to create a field say EOMDate as follows -&lt;/P&gt;&lt;P&gt;31-03-2021&lt;BR /&gt;28-02-2021&lt;BR /&gt;31-01-2021&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;31-03-2020&lt;/P&gt;&lt;P&gt;I use couple of dates in measures expression so I could not use any of those to create reporting date dimension as it will not give correct measure values.&lt;/P&gt;&lt;P&gt;My line of thought is&amp;nbsp; - Create a date variable in Data load script and iterate it in a loop to populate a table with EOMDate as a field and use it as a dimension.&lt;/P&gt;&lt;P&gt;Can you help/show how this can be achieved (if it can be) in Data load script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;SR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 13:46:08 GMT</pubDate>
    <dc:creator>SR2</dc:creator>
    <dc:date>2021-04-01T13:46:08Z</dc:date>
    <item>
      <title>Create Master Calendar for End of Month reporting date</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791649#M61918</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I want to create End of Month reporting date field for last 12 months so that I can use it as a dimension in my QlikSense reports.&lt;/P&gt;&lt;P&gt;E.g. monthend(today()) = 31-03-2021&lt;/P&gt;&lt;P&gt;I want to create a field say EOMDate as follows -&lt;/P&gt;&lt;P&gt;31-03-2021&lt;BR /&gt;28-02-2021&lt;BR /&gt;31-01-2021&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;31-03-2020&lt;/P&gt;&lt;P&gt;I use couple of dates in measures expression so I could not use any of those to create reporting date dimension as it will not give correct measure values.&lt;/P&gt;&lt;P&gt;My line of thought is&amp;nbsp; - Create a date variable in Data load script and iterate it in a loop to populate a table with EOMDate as a field and use it as a dimension.&lt;/P&gt;&lt;P&gt;Can you help/show how this can be achieved (if it can be) in Data load script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;SR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 13:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791649#M61918</guid>
      <dc:creator>SR2</dc:creator>
      <dc:date>2021-04-01T13:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create Master Calendar for End of Month reporting date</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791679#M61924</link>
      <description>&lt;P&gt;Please try this once-&lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Makedate(Year(Today())-1,Month(Today()),Day(Today())));&lt;BR /&gt;Let varMaxDate = Num(Makedate(Year(today()),Month(Today()),Day(Today())));&lt;/P&gt;&lt;P&gt;Datefield:&lt;BR /&gt;LOAD MonthEnd(date($(varMinDate)+IterNo()-1)) AS Datefield&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;WHILE $(varMinDate)+IterNo()-1&amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;Calender:&lt;BR /&gt;LOAD&lt;BR /&gt;Datefield AS Date,&lt;BR /&gt;Year(Datefield) AS Year,&lt;BR /&gt;Month(Datefield) as Month,&lt;BR /&gt;Day(Datefield) AS Day,&lt;BR /&gt;'Q ' &amp;amp; Num(Ceil(Month(Datefield)/3),'(ROM)0') AS Quarter&lt;/P&gt;&lt;P&gt;RESIDENT Datefield;&lt;/P&gt;&lt;P&gt;DROP TABLE Datefield;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 07:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791679#M61924</guid>
      <dc:creator>salonicdk28</dc:creator>
      <dc:date>2021-03-16T07:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create Master Calendar for End of Month reporting date</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791702#M61926</link>
      <description>&lt;P&gt;Thank you so much. This is exactly what I needed.&lt;/P&gt;&lt;P&gt;I have one question on writing expressions.&lt;/P&gt;&lt;P&gt;Currently, I have my measures written as below in a Table (for all 12 months separately). I want to use Date dimension created using your solution and use it to create measure. How can I achieve following&amp;nbsp; using set analysis ?&lt;/P&gt;&lt;P&gt;COUNT(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;[Invoice Hold Count] -= {0}&lt;BR /&gt;,[Payment Method] = {'Direct Debit'}&lt;BR /&gt;[Invoice Hold Date] = {"&amp;lt;=$(=MonthEnd(AddMonths(today(),-12)))"}&lt;BR /&gt;[Invoice Release Date] = {"&amp;gt;$(=MonthEnd(AddMonths(today(),-12)))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;[Invoice Number])&lt;/P&gt;&lt;P&gt;If I simply replace the date logic in expression above with Date field then it gives me null result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 08:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Master-Calendar-for-End-of-Month-reporting-date/m-p/1791702#M61926</guid>
      <dc:creator>SR2</dc:creator>
      <dc:date>2021-03-16T08:50:54Z</dc:date>
    </item>
  </channel>
</rss>

