<?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: Errors when Trying to use Master Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75024#M12388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yousseff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanation - very much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2018 17:41:31 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2018-06-27T17:41:31Z</dc:date>
    <item>
      <title>Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75018#M12382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to use the following master calendar :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFiscalYearStartMonth = 4;&lt;/P&gt;&lt;P&gt;LET vStartDate = Num(YearStart(Today(), -1));&lt;/P&gt;&lt;P&gt;LET vEndDate = Num(YearEnd(Today()));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FiscalCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Dual('Q' &amp;amp; Ceil(FiscalMonth/3), Ceil(FiscalMonth/3)) AS FiscalQuarter, // Fiscal Calendar Quarter&lt;/P&gt;&lt;P&gt;Dual(Text(Date(MonthEnd(Date), 'MMM')), FiscalMonth) AS FiscalMonthName; // Fiscal Calendar Month Name&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Year(Date) AS Year, // Standard Calendar Year&lt;/P&gt;&lt;P&gt;Month(Date) AS Month, // Standard Calendar Month&lt;/P&gt;&lt;P&gt;Date(MonthEnd(Date), 'MMM') AS MonthName,&amp;nbsp; // Standard Calendar Month Name&lt;/P&gt;&lt;P&gt;Dual('Q' &amp;amp; Ceil(Month(Date)/3), Ceil(Month(Date)/3)) AS Quarter,&amp;nbsp; // Standard Calendar Quarter&lt;/P&gt;&lt;P&gt;Mod(Month(Date) - $(vFiscalYearStartMonth), 12)+1 AS FiscalMonth,&amp;nbsp; // Fiscal Calendar Month&lt;/P&gt;&lt;P&gt;YearName(Date, 0, $(vFiscalYearStartMonth)) AS FiscalYear;&amp;nbsp; // Fiscal Calendar Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date($(vStartDate) + RangeSum(Peek('RowNum'), 1) - 1) AS Date,&lt;/P&gt;&lt;P&gt;RangeSum(Peek('RowNum'), 1) AS RowNum&lt;/P&gt;&lt;P&gt;AutoGenerate vEndDate - vStartDate + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I really need to do add a Fiscal year to my data.&amp;nbsp; But when I use this script only some of my records have a Fiscal Year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date_fin_year.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206118_date_fin_year.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help on this?&amp;nbsp; In my dataset im using&amp;nbsp; date([DATE],'DD/MM/YYYY') as Date, to ensure I'm getting the correct format...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 11:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75018#M12382</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-06-25T11:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75019#M12383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try changing just the &lt;SPAN style="font-size: 13.3333px;"&gt;vStartDate &lt;/SPAN&gt;line to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate = Num(YearStart(Today(), &lt;STRONG style="color: #ff0000;"&gt;-2&lt;/STRONG&gt;));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 11:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75019#M12383</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-25T11:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75020#M12384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share full script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75020#M12384</guid>
      <dc:creator>rajeshqvd</dc:creator>
      <dc:date>2018-06-25T12:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75021#M12385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try changing &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vStartDate using a min function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;In this way you can set the min Date of your fact table as the first day of the master calendar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load min(Date) as&amp;nbsp; minDate,&lt;/P&gt;&lt;P&gt;Today() as maxDate&lt;/P&gt;&lt;P&gt;resident yourfacttable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vStartDate &lt;/SPAN&gt;= Num(Peek('minDate', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vEndDate &lt;/SPAN&gt;= Num(Peek('maxDate', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 14:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75021#M12385</guid>
      <dc:creator>captain89</dc:creator>
      <dc:date>2018-06-25T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75022#M12386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain what this difference means?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 07:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75022#M12386</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-06-27T07:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75023#M12387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're generating your Date and FiscalYear fields based on your (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStartDate and VEndDate) variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;on vStartDate you used this: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Num(YearStart(Today(), -1)); ==&amp;gt; this will give you 2017 and not 2016.. so for 2016 dates you are not goiing to generate your FiscalYear values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 08:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75023#M12387</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-06-27T08:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Errors when Trying to use Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75024#M12388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yousseff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanation - very much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 17:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-when-Trying-to-use-Master-Calendar/m-p/75024#M12388</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-06-27T17:41:31Z</dc:date>
    </item>
  </channel>
</rss>

