<?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 Master Calendar and Set Analysis date ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-and-Set-Analysis-date-ranges/m-p/615710#M227054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there a way to get a range in the expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For instance, I'm trying to find amounts where if a due date is less than the master calendar date but 30 days or less than the master calendar date, show the amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm thinking it would be something like this but it's all 0's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;DUEDATE={"&amp;lt;=$(=max(Master_Calendar.Date)&amp;lt;=$(=num(DUEDATE)-30))"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 22:39:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-20T22:39:39Z</dc:date>
    <item>
      <title>Master Calendar and Set Analysis date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-and-Set-Analysis-date-ranges/m-p/615710#M227054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there a way to get a range in the expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For instance, I'm trying to find amounts where if a due date is less than the master calendar date but 30 days or less than the master calendar date, show the amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm thinking it would be something like this but it's all 0's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;DUEDATE={"&amp;lt;=$(=max(Master_Calendar.Date)&amp;lt;=$(=num(DUEDATE)-30))"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 22:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-and-Set-Analysis-date-ranges/m-p/615710#M227054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-20T22:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar and Set Analysis date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-and-Set-Analysis-date-ranges/m-p/615711#M227055</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create the variable like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vmaxcaldate=max(date(Master_Calendar.Date,'DD/MM/YYYY'))&lt;/P&gt;&lt;P&gt;Vprev30days= max(date(DUEDATE,'DD/MM/YYYY'))-30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the variable in set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;DUEDATE={'&amp;gt;=$(Vmaxcaldate)&amp;lt;=$(Vprev30days)'}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 23:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-and-Set-Analysis-date-ranges/m-p/615711#M227055</guid>
      <dc:creator />
      <dc:date>2014-02-20T23:15:38Z</dc:date>
    </item>
  </channel>
</rss>

