<?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: Master Calender not showing all dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551615#M62850</link>
    <description>instead of max(DELIVERY_DATE) use Max(TempDate)&lt;BR /&gt;&lt;BR /&gt;Note : for TempDate do small modification in your script.&lt;BR /&gt;add TempDate in master calender table.&lt;BR /&gt;,</description>
    <pubDate>Mon, 04 Mar 2019 09:54:47 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2019-03-04T09:54:47Z</dc:date>
    <item>
      <title>Master Calender not showing all dates</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551549#M62849</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am using this master calendar:&lt;/P&gt;&lt;P&gt;QuartersMap:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;rowno() as Month,&lt;BR /&gt;'Q' &amp;amp; Ceil (rowno()/3) as Quarter&lt;BR /&gt;AUTOGENERATE (12);&lt;BR /&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;min(DELIVERY_DATE) as minDate,&lt;BR /&gt;max(DELIVERY_DATE) as maxDate&lt;BR /&gt;Resident FACT;&lt;BR /&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;BR /&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;BR /&gt;DROP Table Temp;&lt;BR /&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;$(varMinDate) + Iterno()-1 As Num,&lt;BR /&gt;Date($(varMinDate) + IterNo() - 1) As TempDate&lt;BR /&gt;AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;Right Join(FACT)&lt;BR /&gt;Load&lt;BR /&gt;TempDate AS DELIVERY_DATE,&lt;BR /&gt;week(TempDate) As Week,&lt;BR /&gt;Year(TempDate) As Year,&lt;BR /&gt;Month(TempDate) As Month,&lt;BR /&gt;Day(TempDate) As Day,&lt;BR /&gt;date(monthstart(TempDate), 'MMM-YYYY') as MonthYear,&lt;BR /&gt;ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&lt;BR /&gt;WeekDay(TempDate) as WeekDay&lt;BR /&gt;Resident TempCalendar&lt;/P&gt;&lt;P&gt;Order By TempDate ASC;&lt;/P&gt;&lt;P&gt;Drop Table TempCalendar;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate Sales Per Day :&lt;/P&gt;&lt;P&gt;(Sum(LPD))/$(MaxDeliveryDay)&lt;/P&gt;&lt;P&gt;Where $(MaxDeliveryDay) = ((Max(DELIVERY_DATE) - Min(DELIVERY_DATE)) +1 )&lt;/P&gt;&lt;P&gt;When i select 1-15 days $(MaxDeliveryDay) gives me 13 because there is no sale in 2 days but i want all 15 days....&lt;/P&gt;&lt;P&gt;How's that possible??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551549#M62849</guid>
      <dc:creator>Lionel_Maximus</dc:creator>
      <dc:date>2021-04-02T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender not showing all dates</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551615#M62850</link>
      <description>instead of max(DELIVERY_DATE) use Max(TempDate)&lt;BR /&gt;&lt;BR /&gt;Note : for TempDate do small modification in your script.&lt;BR /&gt;add TempDate in master calender table.&lt;BR /&gt;,</description>
      <pubDate>Mon, 04 Mar 2019 09:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551615#M62850</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-03-04T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender not showing all dates</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551701#M62851</link>
      <description>Hello,&lt;BR /&gt;Thans for your reply..&lt;BR /&gt;What do you mean by this sorry i couldn't understand??&lt;BR /&gt;"Note : for TempDate do small modification in your script.&lt;BR /&gt;add TempDate in master calender table."&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 04 Mar 2019 11:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551701#M62851</guid>
      <dc:creator>Lionel_Maximus</dc:creator>
      <dc:date>2019-03-04T11:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender not showing all dates</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551709#M62852</link>
      <description>MasterCalendar:&lt;BR /&gt;&lt;BR /&gt;Load&lt;BR /&gt;TempDate AS DELIVERY_DATE,&lt;BR /&gt;TempDate,&lt;BR /&gt;week(TempDate) As Week,&lt;BR /&gt;Year(TempDate) As Year,&lt;BR /&gt;Month(TempDate) As Month,&lt;BR /&gt;Day(TempDate) As Day,&lt;BR /&gt;date(monthstart(TempDate), 'MMM-YYYY') as MonthYear,&lt;BR /&gt;ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&lt;BR /&gt;WeekDay(TempDate) as WeekDay&lt;BR /&gt;Resident TempCalendar;&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Mon, 04 Mar 2019 12:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551709#M62852</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-03-04T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender not showing all dates</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551754#M62853</link>
      <description>didn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Mon, 04 Mar 2019 13:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calender-not-showing-all-dates/m-p/1551754#M62853</guid>
      <dc:creator>Lionel_Maximus</dc:creator>
      <dc:date>2019-03-04T13:10:17Z</dc:date>
    </item>
  </channel>
</rss>

