<?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 Measure date variable within the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205699#M1208232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear guru's&lt;/P&gt;&lt;P&gt;I have a problem within the script to compare a date to a variable. I can only get the proper result while using a hard coded date, which is not an option. please advice.&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;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SET&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;DateFormat='DD-MM-YYYY';&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vandaag=Date(Today(), 'DD-MM-YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;BedrijfOpzeg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(date([BedrijfLidm Einddat], 'DD-MM-YYYY') &amp;lt; '02-12-2009', 1, 0) &lt;B&gt;as&lt;/B&gt; KEY_BedrOpgezegd&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;// if(date([BedrijfLidm Einddat], 'DD-MM-YYYY') &amp;lt; $(Vandaag), 1, 0) as KEY_BedrOpgezegd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;resident&lt;/B&gt; BedrijfCommunity; BedrijfLidNummer,&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 16:55:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-02T16:55:35Z</dc:date>
    <item>
      <title>Measure date variable within the script</title>
      <link>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205699#M1208232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear guru's&lt;/P&gt;&lt;P&gt;I have a problem within the script to compare a date to a variable. I can only get the proper result while using a hard coded date, which is not an option. please advice.&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;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SET&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;DateFormat='DD-MM-YYYY';&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vandaag=Date(Today(), 'DD-MM-YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;BedrijfOpzeg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(date([BedrijfLidm Einddat], 'DD-MM-YYYY') &amp;lt; '02-12-2009', 1, 0) &lt;B&gt;as&lt;/B&gt; KEY_BedrOpgezegd&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;// if(date([BedrijfLidm Einddat], 'DD-MM-YYYY') &amp;lt; $(Vandaag), 1, 0) as KEY_BedrOpgezegd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;resident&lt;/B&gt; BedrijfCommunity; BedrijfLidNummer,&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 16:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205699#M1208232</guid>
      <dc:creator />
      <dc:date>2009-12-02T16:55:35Z</dc:date>
    </item>
    <item>
      <title>Measure date variable within the script</title>
      <link>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205700#M1208233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FJPOS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;SET DateFormat&lt;/B&gt;='DD-MM-YYYY';&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;LET&lt;/B&gt; Vandaag=Date(Today(), 'DD-MM-YYYY');&lt;BR /&gt;&lt;I&gt;BedrijfOpzeg:&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;BR /&gt;IF(&lt;BR /&gt; date([BedrijfLidm Einddat], 'DD-MM-YYYY') &amp;lt; '$(Vandaag)'&lt;BR /&gt; , 1&lt;BR /&gt; , 0&lt;BR /&gt;) &lt;B&gt;as&lt;/B&gt; KEY_BedrOpgezegd&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 17:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205700#M1208233</guid>
      <dc:creator />
      <dc:date>2009-12-02T17:02:45Z</dc:date>
    </item>
    <item>
      <title>Measure date variable within the script</title>
      <link>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205701#M1208235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 17:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Measure-date-variable-within-the-script/m-p/205701#M1208235</guid>
      <dc:creator />
      <dc:date>2009-12-02T17:10:37Z</dc:date>
    </item>
  </channel>
</rss>

