<?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: Error in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949046#M975342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vEndDate is already haviing a formatted date as per your let statement and you do not need to use the date function again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;use the variable directly&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vEndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'$(vEndDate)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;hth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sasi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2015 12:25:22 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-09-01T12:25:22Z</dc:date>
    <item>
      <title>Error in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949044#M975340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i have defined variable as : Let vEndDate = Date(Today(), 'YYYY-MM-DD') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and using it as: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date($(vEndDate), 'YYYY-MM-DD') , it is giving me : 1905-06-27 as output. Can someone explain me this absurd behavior?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I ahve attached application also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949044#M975340</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-01T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949045#M975341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to lose the $ in the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;EM&gt;Date(vEndDate, 'YYYY-MM-DD')&lt;/EM&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: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The LET command assigns a value to the variable.&lt;/P&gt;&lt;P&gt;The SET command defines the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such, the formula with $ would only work if you used the SET command instead of the LET.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&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: 13.3333330154419px;"&gt;Best wishes,&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: 13.3333330154419px;"&gt;Susana Silva&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949045#M975341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-01T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949046#M975342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vEndDate is already haviing a formatted date as per your let statement and you do not need to use the date function again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;use the variable directly&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vEndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'$(vEndDate)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;hth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sasi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949046#M975342</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-01T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949047#M975343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your vEndDate will be stored in date format itself. Why u need to convert it again to date format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Partha Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 12:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949047#M975343</guid>
      <dc:creator>parthakk</dc:creator>
      <dc:date>2015-09-01T12:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949048#M975344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;'$(vEndDate)' is working cool but vEndDate will give error bcoz it will treat it as a field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 14:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script/m-p/949048#M975344</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-02T14:15:51Z</dc:date>
    </item>
  </channel>
</rss>

