<?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: how to define where clause for date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333878#M615270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may mis understand the logic over here&lt;/P&gt;&lt;P&gt;Date(45678.7685) Returns 01/21/2025&lt;/P&gt;&lt;P&gt;Date(Today()) Returns Today's date of your machine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that your machine showing same date like 01/21/2025 for you? If so, This condition true nor false&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 05:13:21 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-07-06T05:13:21Z</dc:date>
    <item>
      <title>how to define where clause for date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333875#M615267</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;I want to filter my LOad process with date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where createddate = 45678.7685&amp;nbsp;&amp;nbsp; like that/...&lt;/P&gt;&lt;P&gt;vToday=Date(Today(),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;Load Statment :&lt;/P&gt;&lt;P&gt;LOAD Booking,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Booking Number&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM $(vQvdlaction)Booking.qvd(qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where Date(createddate,'YYYYMMDD')= $(vToday());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am getting 0 outcome...&lt;/P&gt;&lt;P&gt;but in data there are 50 rows with createddate =today()...&lt;/P&gt;&lt;P&gt;PLEASE SUGGEST THE WAY TO CONVERT TIME IN WHERE CONDITION TO LOAD DESIRED OUTCOME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 04:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333875#M615267</guid>
      <dc:creator>qliklearnervir</dc:creator>
      <dc:date>2017-07-06T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to define where clause for date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333876#M615268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your script looks like good &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where Date(createddate,'YYYYMMDD')&amp;nbsp; =&amp;nbsp; &lt;/SPAN&gt;date(Today(),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YYYYMMDD&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or post some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 04:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333876#M615268</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-07-06T04:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to define where clause for date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333877#M615269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vToday=Date(floor(Today()),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;vToday=Date(floor(Today()),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statement:&lt;/P&gt;&lt;P&gt;LOAD Booking,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Booking Number&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM $(vQvdlaction)Booking.qvd(qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where Date(floor(createddate),'YYYYMMDD')= $(vToday());&lt;/P&gt;&lt;P&gt;//where Date(floor(createddate),'YYYY-MM-DD')= $(vToday());&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 05:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333877#M615269</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2017-07-06T05:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to define where clause for date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333878#M615270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may mis understand the logic over here&lt;/P&gt;&lt;P&gt;Date(45678.7685) Returns 01/21/2025&lt;/P&gt;&lt;P&gt;Date(Today()) Returns Today's date of your machine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that your machine showing same date like 01/21/2025 for you? If so, This condition true nor false&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 05:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333878#M615270</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-06T05:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to define where clause for date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333879#M615271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the same way you define for other values. You just have to make sure the format of values in field at the left side matches with the format at right side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex:&lt;/P&gt;&lt;P&gt;Due Date = 1-Jan-2017 &lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;DueDate &amp;lt; '2-Jan-2017'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are in different format you can convert them using Date or Date# function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 05:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333879#M615271</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2017-07-06T05:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to define where clause for date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333880#M615272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way:&lt;/P&gt;&lt;P&gt;Just use today() instead of variable in Where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer attached QV document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD createddate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Where newdate = Today();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD createddate,&lt;/P&gt;&lt;P&gt;Date(round(createddate),'YYYYMMDD') as newdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;createddate&lt;/P&gt;&lt;P&gt;42921.7825&lt;/P&gt;&lt;P&gt;45678.7685&lt;/P&gt;&lt;P&gt;45678.7686&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 06:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-define-where-clause-for-date/m-p/1333880#M615272</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2017-07-06T06:03:38Z</dc:date>
    </item>
  </channel>
</rss>

