<?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: Loading Variables - Script line error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39039#M769978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;No worries about nulls because i will store those into variables. I am thinking about your first suggestion "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"escape the single quote sign, use another one in front", is it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 15:20:51 GMT</pubDate>
    <dc:creator>nihhalmca</dc:creator>
    <dc:date>2018-05-31T15:20:51Z</dc:date>
    <item>
      <title>Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39033#M769972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load variables from excel spread sheet by for loop however, getting script line error while loading.&lt;/P&gt;&lt;P&gt;Variable looks like vName = Num(Sum({&amp;lt;Type ={'A'}, Year = {$(=Max(Year))}&amp;gt;} Sales,'#,##0.0').&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I think, getting error due to single quotations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could you please assist on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nihhal.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39033#M769972</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39034#M769973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vName = '=Num(Sum({&amp;lt;Type ={'A'}, Year = {$(=Max(Year))}&amp;gt;} Sales,'#,##0.0')';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 13:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39034#M769973</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-05-31T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39035#M769974</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: 13px;"&gt;First option to try, replace quotes and dollar signs with CHR(39) en CHR(36) (respectively ' and $). &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;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;SET vName = 'Num(Sum({&amp;lt;Type ={'&amp;amp;CHR39 &amp;amp;'A'&amp;amp;CHR(39)&amp;amp;'}, Year = {'&amp;amp;CHR(36)'&amp;amp;(=Max(Year))}&amp;gt;} Sales,'&amp;amp;CHR(39)&amp;amp;'#,##0.0'&amp;amp;CHR(39)&amp;amp;')';&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;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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 13:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39035#M769974</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-05-31T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39036#M769975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To "escape" the single quote sign, use another one in front, so in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vName = 'Num(Sum({&amp;lt;Type ={''A''}, Year = {$(=Max(Year))}&amp;gt;} Sales,''#,##0.0'')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using LET evaluates the expression on the right of the "=" before assigning the value to the variable, and since it is valid syntax, the part $(=Max(Year)) will be evaluated. It does not have any value during the script, so the result in the variable overview after the load will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Num(Sum({&amp;lt;Type ={'A'}, Year = {}&amp;gt;} Sales,'#,##0.0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would use SET instead of LET and use Chr() function as mentioned above by A.M.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 14:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39036#M769975</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-05-31T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39037#M769976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I am loading 130 variables and changing quotes by chr(39) is time consuming so i tried to add one more quote front and tried to add front and back as well but no luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 14:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39037#M769976</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2018-05-31T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39038#M769977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can only suggest you to use some text editor with Find and Replace and copy back to the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It likely didn't work because of the reason mentioned above, the set analysis, actually any expression in the form $() or $(=) will be evaluated prior to be assigned. During the script, most of these values are non existing, so the $() is expanded into null or garbage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 15:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39038#M769977</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-05-31T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39039#M769978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;No worries about nulls because i will store those into variables. I am thinking about your first suggestion "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"escape the single quote sign, use another one in front", is it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 15:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39039#M769978</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2018-05-31T15:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39040#M769979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is, use the example I wrote above. But the issue with the expressions will persist: as soon as the script finds a $() or $(=) the contents between the brackets will be evaluated and the expression will not be kept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 16:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39040#M769979</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-05-31T16:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39041#M769980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A.M - I tried and did not work, think i am doing mistake somewhere else.&lt;/P&gt;&lt;P&gt;I am coping my actual variables here, could you edit it please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. VariableName = vName&lt;/P&gt;&lt;P&gt;1. VariableValue = num(sum({&amp;lt;Type={'Actual'}, Quarter={$(=min(Quarter,1))}&amp;gt;} Sales,'#,##0.0;(#,##0.0)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. VariableName = vLabel&lt;/P&gt;&lt;P&gt;2. VariableValue = Only({&amp;lt;Quarter={$(=min(Quarter,1))}&amp;gt;} QuartrandYear) &amp;amp;chr(13)&amp;amp;'(A)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nihhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39041#M769980</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2018-06-01T13:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39042#M769981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vName = 'Num(Sum({&amp;lt;Type ={''Actual''}, Quarter = {' &amp;amp; Chr(36) &amp;amp; '(=Min(Quarter))}&amp;gt;} Sales,''#,##0.0'')';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39042#M769981</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-06-01T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39043#M769982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel.&lt;/P&gt;&lt;P&gt;For second variable, it&amp;nbsp; would be &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;'Only({&amp;lt;Quarter={'&amp;amp;chr(36)&amp;amp;'(=min(Quarter,1))}&amp;gt;} QuartrandYear) &amp;amp;chr(13)&amp;amp;''(A)'''&amp;nbsp; - right?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39043#M769982</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2018-06-01T14:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Variables - Script line error</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39044#M769983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks about right, yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-Variables-Script-line-error/m-p/39044#M769983</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-06-01T14:08:46Z</dc:date>
    </item>
  </channel>
</rss>

