<?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: Date comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448084#M167204</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 this if(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Inception Date&amp;gt;= vDate and Expiration Date &amp;lt;= vDate&lt;/SPAN&gt;,DimName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 04:26:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-18T04:26:07Z</dc:date>
    <item>
      <title>Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448083#M167203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a input control which stores date in a variable say vDate. I have two fields Inception Date and Expiration Date. Based on the value in input control I need to get the results in Straight table or Pivot table with the condition Where Inception Date&amp;gt;= vDate and Expiration Date &amp;lt;= vDate. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 02:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448083#M167203</guid>
      <dc:creator />
      <dc:date>2013-03-18T02:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448084#M167204</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 this if(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Inception Date&amp;gt;= vDate and Expiration Date &amp;lt;= vDate&lt;/SPAN&gt;,DimName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 04:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448084#M167204</guid>
      <dc:creator />
      <dc:date>2013-03-18T04:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448085#M167205</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;If you want to use this condition for an expression then u can use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Inception Date={"&amp;gt;=$(vDate)"},&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Expiration Date={"&amp;lt;= $(vDate)"}&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;}FACT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;and if you want to use in dimention then you can follow expression as given by nirmal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Inception Date&amp;gt;= vDate and Expiration Date &amp;lt;= vDate&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;,DimName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sushil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 04:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448085#M167205</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-03-18T04:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448086#M167206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got this working by using below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;InceptionDate={"&amp;lt;=$(vDate)"},ExpirationDate={"&amp;gt;=$(vDate)"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 04:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/448086#M167206</guid>
      <dc:creator />
      <dc:date>2013-03-18T04:56:06Z</dc:date>
    </item>
  </channel>
</rss>

