<?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 Calendar Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1793889#M62170</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/65059"&gt;@Rehan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked fine on my QS Desktop with your sample data, below its screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Master_Calendar_Issue-01.png" style="width: 488px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51721i0D08E78F2AD7BB70/image-size/large?v=v2&amp;amp;px=999" role="button" title="Master_Calendar_Issue-01.png" alt="Master_Calendar_Issue-01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 02:51:56 GMT</pubDate>
    <dc:creator>ArnadoSandoval</dc:creator>
    <dc:date>2021-03-24T02:51:56Z</dc:date>
    <item>
      <title>Master Calendar Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1793525#M62139</link>
      <description>&lt;P&gt;I have a sample data set attached.&amp;nbsp; The script is below. I am trying to generate the missing dates using Master Calendar.&amp;nbsp; I see the dates are generating fine but the new dates are not associated with the dimension. Please see the attached output and sample data.&lt;/P&gt;&lt;P&gt;What am i missing here.&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;Product,&lt;BR /&gt;Date("Order Date",'MM/DD/YYYY') AS "Order Date",&lt;BR /&gt;Sales&lt;BR /&gt;FROM [lib://AttachedFiles/Sample_Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;/P&gt;&lt;P&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;min("Order Date") as minDate,&lt;BR /&gt;max("Order Date") as maxDate&lt;BR /&gt;Resident Data;&lt;/P&gt;&lt;P&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;&lt;BR /&gt;&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;/P&gt;&lt;P&gt;//EXIT SCRIPT;&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;TempDate AS "Order 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;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;Order By TempDate ASC;&lt;BR /&gt;Drop Table TempCalendar;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 21:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1793525#M62139</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2021-03-22T21:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1793889#M62170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/65059"&gt;@Rehan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked fine on my QS Desktop with your sample data, below its screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Master_Calendar_Issue-01.png" style="width: 488px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51721i0D08E78F2AD7BB70/image-size/large?v=v2&amp;amp;px=999" role="button" title="Master_Calendar_Issue-01.png" alt="Master_Calendar_Issue-01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 02:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1793889#M62170</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2021-03-24T02:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1794077#M62184</link>
      <description>&lt;P&gt;NO it doesnt please see your screenshot. There are nulls in the "Product" field&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-Issue/m-p/1794077#M62184</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2021-03-24T13:10:59Z</dc:date>
    </item>
  </channel>
</rss>

