<?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: Qlik Sense 2.2 automatic date handling - set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062033#M17128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year'),&lt;/P&gt;




&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You (or Qlik Sense) created your year field as a date. YearStart will return the first day of the year. That means that if you subtract 1 from a Year value you get the last day of the previous year. But the previous Year value will be the first day of that year and not the last. That's why you don't get a match. I suggest you create your Year field using the Year function only instead of creating a dual value using YearStart. Or use the YearStart function in your expression as well: &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;Sum({&amp;lt;MyDate.autoCalendar.Year={$(=YearStart(max(MyDate.autoCalendar.Year),-1))}&amp;gt;}quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 18:09:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-02T18:09:06Z</dc:date>
    <item>
      <title>Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062030#M17125</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;I'm just testing the Qlik Sense 2.2 automatic date handling. &lt;/P&gt;&lt;P&gt;From what I see it generates the script statement:&amp;nbsp; DECLARE FIELD DEFINITION Tagged ('$date') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last thing I remember about "DECLARE" is, that it has a strange behavior with SET ANALYSIS.&lt;/P&gt;&lt;P&gt;From my tests SET ANALYSIS with Inline Variables I still see a strange behavior in QlikSense 2.2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the previous year instead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MyDate.autoCalendar.Year={$(=max(MyDate.autoCalendar.Year)-1))}&amp;gt;}quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MyDate.autoCalendar.Year={$(=&lt;STRONG&gt;year&lt;/STRONG&gt;(max(MyDate.autoCalendar.Year))-1)}&amp;gt;}quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below a sample application; Without the &lt;STRONG&gt;year&lt;/STRONG&gt;-function, the variable-expression returns a date, even I interact with the year-field in Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to double check if this is working as designed, or is this a matter of change in future Qlik Sense releases. If so, I would have to wait before we implement this feature at customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Roland &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="NordwindTest - Mein neues Arbeitsblatt  Arbeitsblätter - Qlik Sense - Mozilla F__2016-03-01_14-14-15.png" class="jive-image image-1" height="447" src="/legacyfs/online/116433_NordwindTest - Mein neues Arbeitsblatt  Arbeitsblätter - Qlik Sense - Mozilla F__2016-03-01_14-14-15.png" style="height: 447px; width: 839.818px;" width="840" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062030#M17125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062031#M17126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an app that demonstrates this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 13:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062031#M17126</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-01T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062032#M17127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached file!&lt;/P&gt;&lt;P&gt;Tested both in Qlik Sense 2.2.3 Server and Desktop!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 18:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062032#M17127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-02T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062033#M17128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year'),&lt;/P&gt;




&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You (or Qlik Sense) created your year field as a date. YearStart will return the first day of the year. That means that if you subtract 1 from a Year value you get the last day of the previous year. But the previous Year value will be the first day of that year and not the last. That's why you don't get a match. I suggest you create your Year field using the Year function only instead of creating a dual value using YearStart. Or use the YearStart function in your expression as well: &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;Sum({&amp;lt;MyDate.autoCalendar.Year={$(=YearStart(max(MyDate.autoCalendar.Year),-1))}&amp;gt;}quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 18:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062033#M17128</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-02T18:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062034#M17129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for analyzing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it's the code that Qlik actually generates, and I don't really understand why they do so! &lt;/P&gt;&lt;P&gt;Auto date handling seems to be a nice feature, but if it complicates SET Analysis even more,&amp;nbsp; I don't really get the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't they generate an ordinary Year-Field (e.g. 2016 as String and Numeric value)? &lt;/P&gt;&lt;P&gt;May I have to ask Qlik Support, but probably they will return the case as WAD without further explanation &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062034#M17129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T19:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062035#M17130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, well a FBD (Faulty By Design) bug is still a bug. Making Quarter, Month and Week duals with the number of the quarter, month and week and then using Yearstart for the Year field is not logical nor consistent. It's a bug!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062035#M17130</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-03T19:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.2 automatic date handling - set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062036#M17131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Many thanks for your post! I became crazy for a couple of hours with exactly the same problem, since I read you. I think that this is a FBD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 09:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-2-2-automatic-date-handling-set-analysis/m-p/1062036#M17131</guid>
      <dc:creator>brunopreti</dc:creator>
      <dc:date>2016-04-17T09:17:08Z</dc:date>
    </item>
  </channel>
</rss>

