<?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 AW:Re: where statement in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220351#M73275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thomas,&lt;/P&gt;&lt;P&gt;I would prefer to use the num-function for dates, than you don't need quotes for numbers, here the variables would be like this:&lt;/P&gt;&lt;P&gt;New variable for numeric date:&lt;/P&gt;&lt;P&gt;LET vNumDate = Num(Datefield); or LET vNumDate = Num(Makedate(2008,1,6));&lt;/P&gt;&lt;P&gt;LET vWhereCM = 'Num(Vehicle.CheckInDate)&amp;gt;=' &amp;amp; $(vNumDate) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 10:38:02 GMT</pubDate>
    <dc:creator>brenner_martina</dc:creator>
    <dc:date>2010-07-12T10:38:02Z</dc:date>
    <item>
      <title>where statement in variable</title>
      <link>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220349#M73273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe a stupid question ... I want to store a Where clause in a variable and use it when calling a subroutine ...&lt;/P&gt;&lt;P&gt;LET vWhereCM = 'Vehicle.CheckInDate&amp;gt;=' &amp;amp; chr(39) &amp;amp; '06/01/2008' &amp;amp; chr(39);&lt;/P&gt;&lt;P&gt;That is what I have currently but the string then results as :&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.Resident Summary WHERE Vehicle.CheckInDate&amp;gt;=''06/01/2008''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to specify to get :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Summary WHERE Vehicle.CheckInDate&amp;gt;='06/01/2008' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for a tip ...&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 09:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220349#M73273</guid>
      <dc:creator>thomaswrieck</dc:creator>
      <dc:date>2010-07-12T09:16:02Z</dc:date>
    </item>
    <item>
      <title>where statement in variable</title>
      <link>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220350#M73274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Thomas U can try&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Summary WHERE Vehicle.CheckDate&amp;lt;''06/01/2008'' or Vehicle.CheckDate=''06/01/2008''&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220350#M73274</guid>
      <dc:creator>sunil2288</dc:creator>
      <dc:date>2010-07-12T10:24:51Z</dc:date>
    </item>
    <item>
      <title>AW:Re: where statement in variable</title>
      <link>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220351#M73275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thomas,&lt;/P&gt;&lt;P&gt;I would prefer to use the num-function for dates, than you don't need quotes for numbers, here the variables would be like this:&lt;/P&gt;&lt;P&gt;New variable for numeric date:&lt;/P&gt;&lt;P&gt;LET vNumDate = Num(Datefield); or LET vNumDate = Num(Makedate(2008,1,6));&lt;/P&gt;&lt;P&gt;LET vWhereCM = 'Num(Vehicle.CheckInDate)&amp;gt;=' &amp;amp; $(vNumDate) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220351#M73275</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2010-07-12T10:38:02Z</dc:date>
    </item>
    <item>
      <title>AW:Re: where statement in variable</title>
      <link>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220352#M73276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great .. thanks a lot ... that one worked for me ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vNumDate = Num(Makedate(2008,1,6));&lt;/P&gt;&lt;P&gt;LET vStartDate = 'Num(Vehicle.CheckInDate)&amp;gt;=' &amp;amp; $(vNumDate) ;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-statement-in-variable/m-p/220352#M73276</guid>
      <dc:creator>thomaswrieck</dc:creator>
      <dc:date>2010-07-12T12:10:49Z</dc:date>
    </item>
  </channel>
</rss>

