<?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: Compare Date with Variable Date in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434400#M161930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im assuming that [Program Date] is in the format dd/MM/YYYY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to convert vSelectedDate to this format using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=Date(date#($(vSelectedDate), 'DD MMM YYYY'), 'dd/MM/yyyy')"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 08:01:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-09T08:01:27Z</dc:date>
    <item>
      <title>Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434393#M161923</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;Facing an issue with the below expression, could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=Date($(vSelectedDate), 'dd/MM/yyyy')"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here variable vSelectedDate = 31 Jan 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Bobby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 01:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434393#M161923</guid>
      <dc:creator />
      <dc:date>2013-04-09T01:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434394#M161924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;make sure that the data type and format of [Program Date] and vSelectedDate should be same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;try to see the format using test box : =vSelectedDate..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;and then use in setanalysis as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Program Date] = {"&amp;lt;=$(vSelectedDate)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;also try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[Program Date] = {"&amp;lt;=date#($(vSelectedDate), 'dd/MM/yyyy'))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;HTH&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 04:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434394#M161924</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-04-09T04:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434395#M161925</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at your other post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.qlik.com/thread/79048?tstart=0"&gt;http://community.qlik.com/thread/79048?tstart=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 05:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434395#M161925</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-09T05:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434396#M161926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please try the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {'$(=date#(vSelectedDate, 'DD MMM YYYY'))'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is anything .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 05:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434396#M161926</guid>
      <dc:creator />
      <dc:date>2013-04-09T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434397#M161927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im assuming that [Program Date] is in the format dd/MM/YYYY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to convert vSelectedDate to this format using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=Date(date#($(vSelectedDate), 'DD MMM YYYY'), 'dd/MM/yyyy')"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434397#M161927</guid>
      <dc:creator />
      <dc:date>2013-04-09T08:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434398#M161928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im assuming that [Program Date] is in the format dd/MM/YYYY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to convert vSelectedDate to this format using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=Date(date#($(vSelectedDate), 'DD MMM YYYY'), 'dd/MM/yyyy')"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434398#M161928</guid>
      <dc:creator />
      <dc:date>2013-04-09T08:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434399#M161929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im assuming that [Program Date] is in the format dd/MM/YYYY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to convert vSelectedDate to this format using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=Date(date#($(vSelectedDate), 'DD MMM YYYY'), 'dd/MM/yyyy')"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434399#M161929</guid>
      <dc:creator />
      <dc:date>2013-04-09T08:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434400#M161930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im assuming that [Program Date] is in the format dd/MM/YYYY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to convert vSelectedDate to this format using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=Date(date#($(vSelectedDate), 'DD MMM YYYY'), 'dd/MM/yyyy')"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434400#M161930</guid>
      <dc:creator />
      <dc:date>2013-04-09T08:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434401#M161931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to interpret / parse your variable, you should use the date#() function and an appropriate format code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#(vSelectedDate, 'DD MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then maybe you need to use an additional Date() function to format your date according to [Program Date]'s format. Assume [Program Date] is formatted like 'MM/DD/YYYY':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(vSelectedDate, 'DD MMM YYYY'),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to execute an expression like above in a set analysis field modifer, you'll need to use a dollar sign expansion with expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date] = {"&amp;lt;=$(=Date(Date#(vSelectedDate, 'DD MMM YYYY'),'MM/DD/YYYY'))"}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 10:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434401#M161931</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-09T10:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Date with Variable Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434402#M161932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Program Date]={"&amp;lt;=$(vSelectedDate)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vSelectedDate-&amp;gt; format this in a variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sukamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 10:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Date-with-Variable-Date-in-Set-Analysis/m-p/434402#M161932</guid>
      <dc:creator />
      <dc:date>2013-04-09T10:37:17Z</dc:date>
    </item>
  </channel>
</rss>

