<?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 format in QVD where condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456430#M35840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You couldn't grab a field-value in this way (you need a variable for it) and the best way to calculate with dates or to compare them is just to take their numeric value. This could mean in your case something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ToDate:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load max(ApplicationDate) as vDate From [lib://QVD/Branch.QVD] (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let vDate = peek('vDate', -1, 'ToDate');&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load * From [lib://QVD/LOANSHISTONETIMENEW.QVD] (qvd) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where num(DateBrn) &amp;lt; $(vDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2017 07:23:00 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-12-29T07:23:00Z</dc:date>
    <item>
      <title>Date format in QVD where condition</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456429#M35839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble to get a QVD evaluate its where condition.The condition i am applying is to load records whose date is less than a certain date&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the script used in the data load editor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load date(max(ApplicationDate),'DD/MM/YYYY') as vDate From [lib://QVD/Branch.QVD] (qvd) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load * From [lib://QVD/LOANSHISTONETIMENEW.QVD] (qvd) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where date(DateBrn,'DD/MM/YYYY') = DATE(DATE#('vDate','DD/MM/YYYY'), 'DD/MM/YYYY') ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have read this very helpful link before posting this question, but i couldn't solve my issue &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14840"&gt;Dealing with date formats in QlikView and QlikSense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;These are some options i have tried to format the date. Hard coding the date works just fine but nothing else.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//where date(DateBrn,'DD/MM/YYYY') &amp;lt; date#('vDate','DD/MM/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//&lt;STRONG&gt;where date(DateBrn,'DD/MM/YYYY') &amp;lt; date#('27/12/2017','DD/MM/YYYY'); // this worked a couple of times but it did not work the next day&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//where date(DateBrn,'DD/MM/YYYY') &amp;lt; '27/12/2017';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//where date(DateBrn,'DD/MM/YYYY') &amp;lt; date('$(vDate)','DD/MM/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456429#M35839</guid>
      <dc:creator>jananireddy</dc:creator>
      <dc:date>2017-12-29T07:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in QVD where condition</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456430#M35840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You couldn't grab a field-value in this way (you need a variable for it) and the best way to calculate with dates or to compare them is just to take their numeric value. This could mean in your case something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ToDate:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load max(ApplicationDate) as vDate From [lib://QVD/Branch.QVD] (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let vDate = peek('vDate', -1, 'ToDate');&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load * From [lib://QVD/LOANSHISTONETIMENEW.QVD] (qvd) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where num(DateBrn) &amp;lt; $(vDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456430#M35840</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-12-29T07:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in QVD where condition</title>
      <link>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456431#M35841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is a lot clearer now, thanks for the timely help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 12:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-format-in-QVD-where-condition/m-p/1456431#M35841</guid>
      <dc:creator>jananireddy</dc:creator>
      <dc:date>2017-12-29T12:21:20Z</dc:date>
    </item>
  </channel>
</rss>

