<?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: Using date ranges in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/1698100#M53435</link>
    <description>&lt;P&gt;&lt;SPAN class="login-bold"&gt;#Sunny_talwar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Parabéns ótima resposta. Consegui resolver um problema que tenho a mais de duas semanas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 12:35:46 GMT</pubDate>
    <dc:creator>Felipeaviolin</dc:creator>
    <dc:date>2020-04-30T12:35:46Z</dc:date>
    <item>
      <title>Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875848#M12107</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'm struggeling using a specific date range for a KPI object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the sum of sales of the last 30 days. Date is stored in a dimension called [Booking Date] and the sales amount is stored in [Amount in Euro].&lt;/P&gt;&lt;P&gt;Now, let's assume my newest Booking Date is the 11th of November 2014, then this function gives me exactly what I am looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;2014-10-12&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, my issue is that I am not able to use any function for the&lt;SPAN style="color: #3366ff;"&gt; &lt;SPAN style="color: #0000ff;"&gt;lower bound&lt;/SPAN&gt; &lt;/SPAN&gt;of the function above. I tried things like&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;Min([Booking Date])&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;2014-10-12 + -30&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;Max([Booking Date]) - 30&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;Max([Booking Date]) &lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;All just sum up to 0. Particularly interesting is example 4. Since the boundaries are "larger or equal" and "smaller or equal" I would expect to see the sum of all entries with that particular booking date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875848#M12107</guid>
      <dc:creator />
      <dc:date>2015-04-08T12:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875849#M12108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333330154419px; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333330154419px; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM style="color: #575757;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=$(=Date(&lt;SPAN style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;Min([Booking Date]), 'YYYY-MM-DD'))&lt;/SPAN&gt;&amp;lt;=$(=Date(Max([Booking Date]), 'YYYY-MM-DD'))"}&amp;gt;} [Amount in Euro])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333330154419px; line-height: 1.5em; font-weight: inherit;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875849#M12108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-08T12:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875850#M12109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2nd expression can be done like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-size: 13.3333330154419px; font-family: inherit; color: #575757;"&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=$(=Date(AddMonths(&lt;SPAN style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;2014-10-12, -1), 'YYYY-MM-DD')) &lt;/SPAN&gt;&amp;lt;= $(=Date(Max([Booking Date]), 'YYYY-MM-DD'))"}&amp;gt;} [Amount in Euro])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=$(=Date(AddMonths(&lt;SPAN style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;Max([Booking Date]), -1), 'YYYY-MM-DD')) &lt;/SPAN&gt;&amp;lt;=$(=Date(Max([Booking Date]), 'YYYY-MM-DD'))"}&amp;gt;} [Amount in Euro])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Sunny&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875850#M12109</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-08T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875851#M12110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One minor thing, have you been closing the parenthesis at the end of these expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;LI&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Min([Booking Date])&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;2014-10-12 + -30&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;EM style="color: #3d3d3d; font-family: inherit; font-weight: inherit; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Max([Booking Date]) - 30&lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;EM style="color: #3d3d3d; font-family: inherit; font-weight: inherit; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Sum({$&amp;lt;[Booking Date] = {"&amp;gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Max([Booking Date]) &lt;/SPAN&gt;&amp;lt;=Max([Booking Date])"}&amp;gt;} [Amount in Euro]&lt;EM style="color: #3d3d3d; font-family: inherit; font-weight: inherit; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875851#M12110</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-08T12:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875852#M12111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny, closing parenthesis got lost during copying &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 13:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875852#M12111</guid>
      <dc:creator />
      <dc:date>2015-04-08T13:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875853#M12112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;works, thanks a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 13:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875853#M12112</guid>
      <dc:creator />
      <dc:date>2015-04-08T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875854#M12113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome that it worked. I didn't even realize that this was a QlikSense discussion. I have never used QlikSense but I guess the set analysis is probably the same &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 13:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/875854#M12113</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-08T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using date ranges in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/1698100#M53435</link>
      <description>&lt;P&gt;&lt;SPAN class="login-bold"&gt;#Sunny_talwar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Parabéns ótima resposta. Consegui resolver um problema que tenho a mais de duas semanas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-date-ranges-in-set-analysis/m-p/1698100#M53435</guid>
      <dc:creator>Felipeaviolin</dc:creator>
      <dc:date>2020-04-30T12:35:46Z</dc:date>
    </item>
  </channel>
</rss>

