<?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 autocalendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/autocalendar/m-p/75573#M608586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Today when I try to generate the Qlik Sense autocalendar from the DataManager, it first came out that I had an error in my original script which made me strange from the start since the data went well.&lt;BR /&gt;&lt;BR /&gt;But if I generate the autocalendar then it does not tax it when I load it from the Load Editor it will mark me that it had an error in the declared field.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG alt="" class="jive-image image-1" height="99" src="https://community.qlik.com/legacyfs/online/192906_pastedImage_5.png" width="555" /&gt;&lt;BR /&gt;&lt;BR /&gt;My question is:&lt;BR /&gt;&lt;BR /&gt;Am I generating the Master Calendar well? If not, what would be a way to create your own script for the generation of this calendar?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I copy the code that is generated with the autocalendar, but in other applications I used it in the same way and I had not marked it error until this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;[autoCalendar]: &lt;/P&gt;&lt;P&gt;&amp;nbsp; DECLARE FIELD DEFINITION Tagged ('$date')&lt;/P&gt;&lt;P&gt;FIELDS&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual('Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),Num(Ceil(NUM(Month($1))/3),00)) AS [Quarter] Tagged ('$quarter', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Year($1)&amp;amp;'-Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [YearQuarter] Tagged ('$yearquarter', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual('Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [_YearQuarter] Tagged ('$yearquarter', '$hidden', '$simplified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month($1) AS [Month] Tagged ('$month', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Year($1)&amp;amp;'-'&amp;amp;Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Month($1), monthstart($1)) AS [_YearMonth] Tagged ('$axis', '$yearmonth', '$simplified', '$hidden'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual('W'&amp;amp;Num(Week($1),00), Num(Week($1),00)) AS [Week] Tagged ('$weeknumber', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor($1), 'D') AS [_Date] Tagged ('$axis', '$date', '$hidden', '$simplified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (DayNumberOfYear($1) &amp;lt;= DayNumberOfYear(Today()), 1, 0) AS [InYTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Today())-Year($1) AS [YearsAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (DayNumberOfQuarter($1) &amp;lt;= DayNumberOfQuarter(Today()),1,0) AS [InQTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4*Year(Today())+Ceil(Month(Today())/3)-4*Year($1)-Ceil(Month($1)/3) AS [QuartersAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ceil(Month(Today())/3)-Ceil(Month($1)/3) AS [QuarterRelNo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Day($1)&amp;lt;=Day(Today()),1,0) AS [InMTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12*Year(Today())+Month(Today())-12*Year($1)-Month($1) AS [MonthsAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Today())-Month($1) AS [MonthRelNo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(WeekDay($1)&amp;lt;=WeekDay(Today()),1,0) AS [InWTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (WeekStart(Today())-WeekStart($1))/7 AS [WeeksAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(Today())-Week($1) AS [WeekRelNo] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS [VFKP_CreadoEl] USING [autoCalendar] ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 22:18:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-08T22:18:41Z</dc:date>
    <item>
      <title>autocalendar</title>
      <link>https://community.qlik.com/t5/QlikView/autocalendar/m-p/75573#M608586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Today when I try to generate the Qlik Sense autocalendar from the DataManager, it first came out that I had an error in my original script which made me strange from the start since the data went well.&lt;BR /&gt;&lt;BR /&gt;But if I generate the autocalendar then it does not tax it when I load it from the Load Editor it will mark me that it had an error in the declared field.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG alt="" class="jive-image image-1" height="99" src="https://community.qlik.com/legacyfs/online/192906_pastedImage_5.png" width="555" /&gt;&lt;BR /&gt;&lt;BR /&gt;My question is:&lt;BR /&gt;&lt;BR /&gt;Am I generating the Master Calendar well? If not, what would be a way to create your own script for the generation of this calendar?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I copy the code that is generated with the autocalendar, but in other applications I used it in the same way and I had not marked it error until this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;[autoCalendar]: &lt;/P&gt;&lt;P&gt;&amp;nbsp; DECLARE FIELD DEFINITION Tagged ('$date')&lt;/P&gt;&lt;P&gt;FIELDS&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual('Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),Num(Ceil(NUM(Month($1))/3),00)) AS [Quarter] Tagged ('$quarter', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Year($1)&amp;amp;'-Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [YearQuarter] Tagged ('$yearquarter', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual('Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [_YearQuarter] Tagged ('$yearquarter', '$hidden', '$simplified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month($1) AS [Month] Tagged ('$month', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Year($1)&amp;amp;'-'&amp;amp;Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Month($1), monthstart($1)) AS [_YearMonth] Tagged ('$axis', '$yearmonth', '$simplified', '$hidden'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual('W'&amp;amp;Num(Week($1),00), Num(Week($1),00)) AS [Week] Tagged ('$weeknumber', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor($1), 'D') AS [_Date] Tagged ('$axis', '$date', '$hidden', '$simplified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (DayNumberOfYear($1) &amp;lt;= DayNumberOfYear(Today()), 1, 0) AS [InYTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Today())-Year($1) AS [YearsAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (DayNumberOfQuarter($1) &amp;lt;= DayNumberOfQuarter(Today()),1,0) AS [InQTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4*Year(Today())+Ceil(Month(Today())/3)-4*Year($1)-Ceil(Month($1)/3) AS [QuartersAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ceil(Month(Today())/3)-Ceil(Month($1)/3) AS [QuarterRelNo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Day($1)&amp;lt;=Day(Today()),1,0) AS [InMTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12*Year(Today())+Month(Today())-12*Year($1)-Month($1) AS [MonthsAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Today())-Month($1) AS [MonthRelNo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(WeekDay($1)&amp;lt;=WeekDay(Today()),1,0) AS [InWTD] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; (WeekStart(Today())-WeekStart($1))/7 AS [WeeksAgo] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(Today())-Week($1) AS [WeekRelNo] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS [VFKP_CreadoEl] USING [autoCalendar] ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/autocalendar/m-p/75573#M608586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T22:18:41Z</dc:date>
    </item>
  </channel>
</rss>

