<?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: Calendar measures, Data load editor and Data Manger in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385082#M31692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! What is meant by the statement quoted by you is that calendar measures (e.g. Sum Spend YTD) work only with the autoCalendar. Date fields are mapped by default to the autoCalendar when loaded in Data manager. If you use a custom master calendar and map your date fields to it, you won't be able to use the calendar measures. Therefore, there are two things that you can do, both include the use of the autoCalendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load the data using the Data manager and specify the date field as Date if it is not automatically recognized. This will create a script with autoCalendar and your date mapped to it.&lt;/LI&gt;&lt;LI&gt;Paste the autoCalendar below in your script and map your date field to it:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15024334940342992" jivemacro_uid="_15024334940342992"&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 &lt;SPAN style="color: #ff0000;"&gt;YourDateField&lt;/SPAN&gt; USING [autoCalendar] ; //Change YourDateFiled with the actual name of your date field&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the other problem - close Qlik and then try again. This happened to me once, no idea why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Aug 2017 06:38:53 GMT</pubDate>
    <dc:creator>Ivan_Bozov</dc:creator>
    <dc:date>2017-08-11T06:38:53Z</dc:date>
    <item>
      <title>Calendar measures, Data load editor and Data Manger</title>
      <link>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385081#M31691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This, from "create Calendar Measures":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Calendar measures do not support calendars created using the &lt;SPAN class="ui_item"&gt;Data load editor&lt;/SPAN&gt;. If you use calendars created using &lt;SPAN class="ui_item"&gt;Data load editor&lt;/SPAN&gt; and want to create calendar measures, you must load a table containing a date field using &lt;SPAN class="ui_item"&gt;Data manager&lt;/SPAN&gt; for use with your tables loaded using &lt;SPAN class="ui_item"&gt;Data load editor&lt;/SPAN&gt;."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please demonstrate (by video or line-by-line instructions) how to accomplish the last clause of the above boxed instructions on this subject matter?&amp;nbsp; (&amp;nbsp; &lt;A href="http://help.qlik.com/en-US/sense/3.2/Subsystems/Hub/Content/Measures/create-calendar-measure.htm" title="http://help.qlik.com/en-US/sense/3.2/Subsystems/Hub/Content/Measures/create-calendar-measure.htm"&gt;Create calendar measures ‒ Qlik Sense&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start a new sheet in my current app (Data load Editor product)&amp;nbsp; and try to add a table using Data Manager, I get an error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173122_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(incidentally, I would like to appeal to QLIK to take time to standardize processes and procedures so that functionality available with Data Load Manager should also be easily available with Data Load Editor; same for desktop versus cloud-based QLIK. Thanks. AND you are doing a great job thus far!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 22:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385081#M31691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-10T22:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar measures, Data load editor and Data Manger</title>
      <link>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385082#M31692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! What is meant by the statement quoted by you is that calendar measures (e.g. Sum Spend YTD) work only with the autoCalendar. Date fields are mapped by default to the autoCalendar when loaded in Data manager. If you use a custom master calendar and map your date fields to it, you won't be able to use the calendar measures. Therefore, there are two things that you can do, both include the use of the autoCalendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load the data using the Data manager and specify the date field as Date if it is not automatically recognized. This will create a script with autoCalendar and your date mapped to it.&lt;/LI&gt;&lt;LI&gt;Paste the autoCalendar below in your script and map your date field to it:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15024334940342992" jivemacro_uid="_15024334940342992"&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 &lt;SPAN style="color: #ff0000;"&gt;YourDateField&lt;/SPAN&gt; USING [autoCalendar] ; //Change YourDateFiled with the actual name of your date field&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the other problem - close Qlik and then try again. This happened to me once, no idea why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 06:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385082#M31692</guid>
      <dc:creator>Ivan_Bozov</dc:creator>
      <dc:date>2017-08-11T06:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar measures, Data load editor and Data Manger</title>
      <link>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385083#M31693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks: it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just used option # 2: copied it to my script in load editor and substituted the date fields in my table for &amp;lt;YourDateField&amp;gt; in line 26.&lt;/P&gt;&lt;P&gt;That was the only change to make.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 06:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385083#M31693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-12T06:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar measures, Data load editor and Data Manger</title>
      <link>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385084#M31694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it works. Cheers! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 07:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385084#M31694</guid>
      <dc:creator>Ivan_Bozov</dc:creator>
      <dc:date>2017-08-12T07:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar measures, Data load editor and Data Manger</title>
      <link>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385085#M31695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem. I pasted the autocalendar script in the data load editor. I changed the date field to the name in my tables. When I try to insert these fields into my sheets, they produce nothing. They are listed under the date field, but they don't seem to do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something else I should be taking note of when I run the script editor other than changing the field name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2017 14:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calendar-measures-Data-load-editor-and-Data-Manger/m-p/1385085#M31695</guid>
      <dc:creator>k_robertson</dc:creator>
      <dc:date>2017-12-09T14:18:07Z</dc:date>
    </item>
  </channel>
</rss>

