<?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 Set analysis with date ranges, intended behaviour or bug? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137661#M9675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to get the values of some measures for the current month and next 11 and used a date range to limit the caculation of the measures.&lt;/P&gt;&lt;P&gt;At first the numbers didn't seem to be right so after reviewing my expressions for a while, I found the culprit in the space in the second part of the date range. The results obtained up to that moment were equivalent of not having the second half of the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px;"&gt;[myDate]={"&amp;gt;=$(=monthstart(today())) &lt;/SPAN&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px; color: #ff6600;"&gt;&amp;lt;= $&lt;/SPAN&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px;"&gt;(=monthend(addMonths(today(),11)))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After removing the space I started getting the right numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px;"&gt;[myDate]={"&amp;gt;=$(=monthstart(today())) &lt;SPAN style="color: #339966;"&gt;&amp;lt;=$&lt;/SPAN&gt;(=monthend(addMonths(today(),11)))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the correct and expected behaviour of the set expression in Qlik Sense?&lt;/P&gt;&lt;P&gt;I don't recall any documentation mentioning the importance of not having a blank space there and it seems a bit counterintuitive to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jul 2018 19:21:11 GMT</pubDate>
    <dc:creator>pabloviera</dc:creator>
    <dc:date>2018-07-29T19:21:11Z</dc:date>
    <item>
      <title>Set analysis with date ranges, intended behaviour or bug?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137661#M9675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to get the values of some measures for the current month and next 11 and used a date range to limit the caculation of the measures.&lt;/P&gt;&lt;P&gt;At first the numbers didn't seem to be right so after reviewing my expressions for a while, I found the culprit in the space in the second part of the date range. The results obtained up to that moment were equivalent of not having the second half of the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px;"&gt;[myDate]={"&amp;gt;=$(=monthstart(today())) &lt;/SPAN&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px; color: #ff6600;"&gt;&amp;lt;= $&lt;/SPAN&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px;"&gt;(=monthend(addMonths(today(),11)))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After removing the space I started getting the right numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 13.3333px;"&gt;[myDate]={"&amp;gt;=$(=monthstart(today())) &lt;SPAN style="color: #339966;"&gt;&amp;lt;=$&lt;/SPAN&gt;(=monthend(addMonths(today(),11)))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the correct and expected behaviour of the set expression in Qlik Sense?&lt;/P&gt;&lt;P&gt;I don't recall any documentation mentioning the importance of not having a blank space there and it seems a bit counterintuitive to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2018 19:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137661#M9675</guid>
      <dc:creator>pabloviera</dc:creator>
      <dc:date>2018-07-29T19:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with date ranges, intended behaviour or bug?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137662#M9676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is consistent with how it works when you do a manual search in the "Selection Tool". If you put one or more spaces between the comparison operator(s) and a date you will not get a invalid search. Spaces between the first date and the operator(s) of a second date however does not matter. According to the documentation it seems like date searches fall under the category of numeric searches. The strange thing is that the same limitation with spaces between the comparison operator(s) does not apply to searches with normal numbers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree it seems a little bit counter-intuitive and it is not documented in any way AFAIK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2018 21:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137662#M9676</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-07-29T21:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with date ranges, intended behaviour or bug?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137663#M9677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer Petter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested your observation about the "Selection Tool" and could reproduce it.&lt;/P&gt;&lt;P&gt;It seems inconsistent that normal numbers accept the space but dates don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going back to the the expression editor, maybe it could give a warning in these cases, to alert the user that part of the expression is being ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I don't know if posting here is the best way to get the attention from somebody within Qlik that could give us more insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 12:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-date-ranges-intended-behaviour-or-bug/m-p/137663#M9677</guid>
      <dc:creator>pabloviera</dc:creator>
      <dc:date>2018-08-02T12:27:31Z</dc:date>
    </item>
  </channel>
</rss>

