<?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 as string in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316130#M840995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try it,&lt;/P&gt;&lt;P&gt;&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;LOAD&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;'$(vAcadyear)' as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 08:54:27 GMT</pubDate>
    <dc:creator>tyagishaila</dc:creator>
    <dc:date>2017-05-10T08:54:27Z</dc:date>
    <item>
      <title>Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316117#M840982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable in my script as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vAcadyear = 2016-17;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then use this in several other places in my script (mostly in file names) which works just fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vAcadyear)\Misc\Map.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Points$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Becomes&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[2016-17\Misc\Map.xls]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(biff, embedded labels, table is Points$);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;which is exactly what I want. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;However, in another place in the LOAD statement I have:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;$(vAcadyear) as Year,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's not working as I want. In this case, it evaluates the variable, and gives me '1999' as 'Year' (i.e. 2016 minus 17!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get it to store this variable as a string, even though it "looks" like a calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jess&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/Variable-as-string-in-script/m-p/1316117#M840982</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316118#M840983</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;Sorry, I dont understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;$(vAcadyear) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean that you use the value 2016-17?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have the script or a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316118#M840983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T08:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316119#M840984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I would now expect the field 'year' to have the value '2016-17'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, it gives me the value '1999' which is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316119#M840984</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-05-10T08:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316120#M840985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you check the source field format? I guess there is some mis match in the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316120#M840985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T08:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316121#M840986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with double quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &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;$(vAcadyear)" as Year&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;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316121#M840986</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-05-10T08:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316122#M840987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jai, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid I don't understand what you mean. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316122#M840987</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-05-10T08:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316123#M840988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With load inline work fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Set&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vAcadyear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '2016-17';&lt;BR /&gt; &lt;BR /&gt; T:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; F1, F2&lt;BR /&gt; A, $(vAcadyear)&lt;BR /&gt; B, $(vAcadyear)&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can you try to write let = '2016-17'?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316123#M840988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T08:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316124#M840989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can you share the sample data, that look alike? (If Possible &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316124#M840989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T08:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316125#M840990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives me the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;2016-17&amp;gt;&lt;/P&gt;&lt;P&gt;Centre_data:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;"2016-17" as Year,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316125#M840990</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-05-10T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316126#M840991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jessica, try with let = '2016-17', it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316126#M840991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T08:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316127#M840992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, still gives me '1999' as a value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll upload a sample file on here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316127#M840992</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-05-10T08:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316128#M840993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316128#M840993</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-05-10T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316129#M840994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want it to say '1999' though. I want it to say '2016-17'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316129#M840994</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-05-10T08:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316130#M840995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try it,&lt;/P&gt;&lt;P&gt;&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;LOAD&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;'$(vAcadyear)' as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 08:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316130#M840995</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2017-05-10T08:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316131#M840996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe: '$(vAcadyear)' as Year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 09:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316131#M840996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T09:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316132#M840997</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;try with single quote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vAcadyear = '2017-16';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ID,'$(vAcadyear)' as Year INLINE [&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 09:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316132#M840997</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-05-10T09:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable as string in script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316133#M840998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Shaila, that works perfectly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 09:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-as-string-in-script/m-p/1316133#M840998</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-05-10T09:14:22Z</dc:date>
    </item>
  </channel>
</rss>

