<?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 Date conversion and filter issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153881#M630057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are facing recent date change and filter problem in one of our report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the back ground of issue is give bleow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in datasource date is like :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [created date] &lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; background-color: #f9f9f9;"&gt;2016-03-29 22:35:19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are converting&amp;nbsp; that date in QVD load stage like Date ([created date].'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally we want to filter the data in qvw layer by using variable :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vstartdate=Date(Num(Today() -20),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Date([created date],'DD/MM/YYYY') = '$(&lt;SPAN style="font-size: 13.3333px;"&gt;vstartdate)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT WE ARE not getting any out ....am i doing somethine wrong.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 07:42:04 GMT</pubDate>
    <dc:creator>singhcv123</dc:creator>
    <dc:date>2016-08-09T07:42:04Z</dc:date>
    <item>
      <title>Date conversion and filter issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153881#M630057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are facing recent date change and filter problem in one of our report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the back ground of issue is give bleow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in datasource date is like :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [created date] &lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; background-color: #f9f9f9;"&gt;2016-03-29 22:35:19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are converting&amp;nbsp; that date in QVD load stage like Date ([created date].'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally we want to filter the data in qvw layer by using variable :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vstartdate=Date(Num(Today() -20),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Date([created date],'DD/MM/YYYY') = '$(&lt;SPAN style="font-size: 13.3333px;"&gt;vstartdate)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT WE ARE not getting any out ....am i doing somethine wrong.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153881#M630057</guid>
      <dc:creator>singhcv123</dc:creator>
      <dc:date>2016-08-09T07:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and filter issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153882#M630058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to create date lik 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: 12px;"&gt; Date(Date#([created date] ,'YYYY-MM-DD mm:ss:hh'),'DD/MM/YYYY')&amp;nbsp; as NewDate&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153882#M630058</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-08-09T07:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date conversion and filter issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153883#M630059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of things here....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If you don't need the time portion of the created date, remove it. Just because you have formatted it as Date(), doesn't mean the time portion is removed, use Floor() to remove it.&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;&lt;BR /&gt;&lt;/SPAN&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;&lt;STRONG&gt;Date(Floor([created date]), 'DD/MM/YYYY') as [created date]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Try using it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;vstartdate = Num(Today() -20);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Where [created date] = $(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;vstartdate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But your existing should also work, but I prefer using Num(), instead of date in where clause.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-and-filter-issue/m-p/1153883#M630059</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T08:23:36Z</dc:date>
    </item>
  </channel>
</rss>

