<?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 variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723420#M259582</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;Not sure whar DBMS you are using, but it probably needs quotes on the dates, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;financialperiod between '$(v_userStart)' and '$(v_userEnd))'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 14:49:28 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-08-21T14:49:28Z</dc:date>
    <item>
      <title>Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723419#M259581</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 have the following in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select top 2000&lt;/P&gt;&lt;P&gt;CASE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cb.FinancialPeriod,&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;cb.Actual&lt;/P&gt;&lt;P&gt;from plc&lt;/P&gt;&lt;P&gt;where financialperiod between ($(v_userStart)) and ($(v_userEnd));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have then setup the two variables in in the document properties with some dates set in both.&amp;nbsp;&amp;nbsp; However, when I reload the app no data appears.&amp;nbsp; Can you please help? What am I missing?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 14:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723419#M259581</guid>
      <dc:creator />
      <dc:date>2014-08-21T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723420#M259582</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;Not sure whar DBMS you are using, but it probably needs quotes on the dates, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;financialperiod between '$(v_userStart)' and '$(v_userEnd))'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 14:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723420#M259582</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-08-21T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723421#M259583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is not it, perhaps the variables are nor returning what you expect. If you switch to debug mode and put breakpoint before the Select, them you can step to that point and see exactly what query is being sent to the DBMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 14:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723421#M259583</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-08-21T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723422#M259584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its a SQL db&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 14:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723422#M259584</guid>
      <dc:creator />
      <dc:date>2014-08-21T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723423#M259585</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;Check the variables whether they are getting values in it, may be that is the issue.&amp;nbsp; Also date values need to be surrounded by single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select top 2000&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cb.FinancialPeriod,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;c&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cb.Actual&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from plc&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where financialperiod between '$(v_userStart)' and '$(v_userEnd);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Also check the date formats are same in both variables and your date field.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723423#M259585</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-21T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723424#M259586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it looks like i had missing quotes.&amp;nbsp; Thanks all &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723424#M259586</guid>
      <dc:creator />
      <dc:date>2014-08-21T15:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723425#M259587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please close this thread by giving correct and helpful answer to the helpful posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable/m-p/723425#M259587</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-21T15:53:41Z</dc:date>
    </item>
  </channel>
</rss>

