<?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 Does my date fall within a range? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Does-my-date-fall-within-a-range/m-p/379243#M702768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping someone could help me.&lt;/P&gt;&lt;P&gt;Im trying to return a series of results whereby a holiday is currently going on, (ie: today's date is in between the Departure Date and the Return Date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have a database field for "Return Date" so I calculated this using &lt;SPAN style="font-family: Calibri;"&gt;the formula:&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;[Departure Date]+[TD Duration]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me whether or not my formula below makes sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;= if ( [Departure Date] &amp;lt;today() ,if( ( [Departure Date] + [TD Duration] ) &amp;gt;today() , "Yes" , "No" ) , "No" )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Christof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 16:34:32 GMT</pubDate>
    <dc:creator>cmccafferty</dc:creator>
    <dc:date>2012-08-20T16:34:32Z</dc:date>
    <item>
      <title>Does my date fall within a range?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-my-date-fall-within-a-range/m-p/379243#M702768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping someone could help me.&lt;/P&gt;&lt;P&gt;Im trying to return a series of results whereby a holiday is currently going on, (ie: today's date is in between the Departure Date and the Return Date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have a database field for "Return Date" so I calculated this using &lt;SPAN style="font-family: Calibri;"&gt;the formula:&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;[Departure Date]+[TD Duration]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me whether or not my formula below makes sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;= if ( [Departure Date] &amp;lt;today() ,if( ( [Departure Date] + [TD Duration] ) &amp;gt;today() , "Yes" , "No" ) , "No" )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Christof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 16:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-my-date-fall-within-a-range/m-p/379243#M702768</guid>
      <dc:creator>cmccafferty</dc:creator>
      <dc:date>2012-08-20T16:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does my date fall within a range?</title>
      <link>https://community.qlik.com/t5/QlikView/Does-my-date-fall-within-a-range/m-p/379244#M702769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christof,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logically it is correct.&amp;nbsp; It could look simpler though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;= if ([Departure Date] &amp;lt;today() AND&amp;nbsp; ( [Departure Date] + [TD Duration] ) &amp;gt;today(), "Yes", No" ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 16:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-my-date-fall-within-a-range/m-p/379244#M702769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-20T16:45:26Z</dc:date>
    </item>
  </channel>
</rss>

