<?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: variable LET  script error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814163#M664643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Yoann.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;With code like this&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;TempTable1:&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Max( Date) as MaxDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident FACT;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMaxDateNum = Num( Peek( 'MaxDate', 0, 'TempTable1'));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMaxDate = Date( $(vMaxDateNum));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vMonthStart=MonthStart(FieldValue('MaxDate', 1));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vPeriod=$(vMaxDate)-$(vMonthStart);&lt;/P&gt;&lt;P&gt;&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;it almost works=)))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I get an error "script line error LET vPeriod=08.12.2014-01.12.2014"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;what does Qlik need to be this right? date#, num() doesnt work as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 10:38:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-11T10:38:09Z</dc:date>
    <item>
      <title>variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814152#M664632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello! Can someone explain me, please, why does&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;LET vMonthStart=MonthStart(max(Date));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Date is a field of previously loaded table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cause a script line error?&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;Alexa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814152#M664632</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814153#M664633</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;You should use following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vMonthStart=MonthStart(max(&lt;STRONG&gt;PEEK&lt;/STRONG&gt;('Date')));&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;&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;Hope this helps.&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;&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;Andrei&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814153#M664633</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-12-11T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814154#M664634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrei, tahnks for your reply. But it doesn't work/ the same error=(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814154#M664634</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814155#M664635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexa,&lt;/P&gt;&lt;P&gt;check this one&lt;/P&gt;&lt;P&gt;let vmax = MonthStart(Peek('DateOfSale', -1));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814155#M664635</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-12-11T10:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814156#M664636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can try this construction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date, Max&lt;/P&gt;&lt;P&gt;01.12.2015, 123&lt;/P&gt;&lt;P&gt;05.12.2016, 234&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; max(Date) as MaxDate&lt;/P&gt;&lt;P&gt;resident abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMonthStart = MonthsStart(PEEK('MaxDate'));&lt;/P&gt;&lt;P&gt;drop table temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814156#M664636</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-12-11T10:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814157#M664637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tmp_MaxDate:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Max (Date) as MaxDate&lt;/P&gt;&lt;P&gt;Resident Previous_Table;&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;"&gt;LET vMonthStart=MonthStart(&lt;STRONG&gt;FieldValue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;('MaxDate', 1));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814157#M664637</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-11T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814158#M664638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made like this&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TempTable1:&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; Max( Date) as MaxDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Resident FACT;&lt;/P&gt;&lt;P&gt;Let vMaxDateNum = Num( Peek( 'MaxDate', 0, 'TempTable1'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = Date( $(vMinDateNum));&lt;/P&gt;&lt;P&gt;LET vMonthStart=MonthStart($(vMaxDate));&lt;/P&gt;&lt;P&gt;LET vPeriod=$(vMaxDate)-$(vMonthStart);// to tell the truth, THIS variable is what I need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error. &lt;/P&gt;&lt;P&gt;But it DOESNT WORK=((( only first variable is ok. I cant see other variables in my option of document.... &lt;/P&gt;&lt;P&gt;what can be wrong?=(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814158#M664638</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814159#M664639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and make sure, your dates are sorted ascending&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814159#M664639</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-12-11T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814160#M664640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814160#M664640</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-12-11T10:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814161#M664641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post an example? Peek should work for you. Though the 'max' won't work in the let like that, as peek only returns a single value, so max won't do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll either need to load a new date field to use with the max within it, or ensure you data is order by date, so you can peek the last/first row depending on your ordering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814161#M664641</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814162#M664642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With code like this&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TempTable1:&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Max( Date) as MaxDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Resident FACT;&lt;/P&gt;&lt;P&gt;Let vMaxDateNum = Num( Peek( 'MaxDate', 0, 'TempTable1'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = Date( $(vMaxDateNum));&lt;/P&gt;&lt;P&gt;LET vMonthStart=MonthStart(FieldValue('MaxDate', 1));&lt;/P&gt;&lt;P&gt;LET vPeriod=$(vMaxDate)-$(vMonthStart);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it almost works=)))&lt;/P&gt;&lt;P&gt;I get an error "script line error LET vPeriod=08.12.2014-01.12.2014"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does Qlik need to be this right? date#, num() doesnt work as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814162#M664642</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814163#M664643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Yoann.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;With code like this&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;TempTable1:&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Max( Date) as MaxDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident FACT;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMaxDateNum = Num( Peek( 'MaxDate', 0, 'TempTable1'));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vMaxDate = Date( $(vMaxDateNum));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vMonthStart=MonthStart(FieldValue('MaxDate', 1));&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vPeriod=$(vMaxDate)-$(vMonthStart);&lt;/P&gt;&lt;P&gt;&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;it almost works=)))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I get an error "script line error LET vPeriod=08.12.2014-01.12.2014"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;what does Qlik need to be this right? date#, num() doesnt work as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814163#M664643</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814164#M664644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;LET vPeriod=$(vMaxDate)*1-$(vMonthStart)*1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814164#M664644</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-11T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814165#M664645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doesnt help=( same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814165#M664645</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814166#M664646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14182961716446451" jivemacro_uid="_14182961716446451"&gt;
&lt;P&gt;LET vPeriod=Num('$(vMaxDate)')-Num('$(vMonthStart)');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 11:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814166#M664646</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2014-12-11T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814167#M664647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesnt work=(&lt;/P&gt;&lt;P&gt;Qlik counts everithing exept &lt;/P&gt;&lt;P&gt;period&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73238_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 11:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814167#M664647</guid>
      <dc:creator />
      <dc:date>2014-12-11T11:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814168#M664648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14182979191521982" jivemacro_uid="_14182979191521982"&gt;
&lt;P&gt;LET vPeriod=$(vMaxDateNum)-$(vMonthStartNum);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 11:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814168#M664648</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2014-12-11T11:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814169#M664649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm... now it works=)))) &lt;/P&gt;&lt;P&gt;Thank you!=)&lt;/P&gt;&lt;P&gt;But I really dont understand its logic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 13:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814169#M664649</guid>
      <dc:creator />
      <dc:date>2014-12-11T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: variable LET  script error</title>
      <link>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814170#M664651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Maybe &lt;/SPAN&gt;&lt;/SPAN&gt;this error&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;occurring&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;because the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QlikView&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;interpreting&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;variable (vMaxDate and vMonthStart)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as text&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;instead of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;number&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;or&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;date.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-LET-script-error/m-p/814170#M664651</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2014-12-11T15:45:07Z</dc:date>
    </item>
  </channel>
</rss>

