<?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 How to use a variable value as a string in a Load instruction  ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212207#M66245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The dollar expansion will just replace the string literal in your script. You need to include the quotes for it:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;autonumber( [Region] &amp;amp; '/' &amp;amp; '$(V_UNKNOW_MARKET)') as KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Apr 2010 12:44:52 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2010-04-13T12:44:52Z</dc:date>
    <item>
      <title>How to use a variable value as a string in a Load instruction  ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212206#M66244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to do a simple thing in a script (QlikView Desktop V9):&lt;BR /&gt;I've a variable :&lt;/P&gt;&lt;P&gt;SET V_UNKNOW_MARKET='Unknow' ;&lt;/P&gt;&lt;P&gt;then further in the script, I want to use this value :&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;autonumber( [Region] &amp;amp; '/' &amp;amp; $(V_UNKNOW_MARKET)) as KEY&lt;BR /&gt; ....&lt;/P&gt;&lt;P&gt;So it's quite simple, but with this syntax, QlikView understand the string 'Unknow' as a fieldname : Unknow.&lt;BR /&gt;I'm fighting with the syntax (using LET, SET, $(=) ...)&lt;/P&gt;&lt;P&gt;Do you know how to specify that the variable value is a constant string ?&lt;/P&gt;&lt;P&gt;Best regards&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 12:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212206#M66244</guid>
      <dc:creator />
      <dc:date>2010-04-13T12:39:09Z</dc:date>
    </item>
    <item>
      <title>How to use a variable value as a string in a Load instruction  ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212207#M66245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The dollar expansion will just replace the string literal in your script. You need to include the quotes for it:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;autonumber( [Region] &amp;amp; '/' &amp;amp; '$(V_UNKNOW_MARKET)') as KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 12:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212207#M66245</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2010-04-13T12:44:52Z</dc:date>
    </item>
    <item>
      <title>How to use a variable value as a string in a Load instruction  ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212208#M66246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use folowing syntax&lt;/P&gt;&lt;P&gt;var = CHR(39) &amp;amp; 'Unknown' &amp;amp; CHR(39)&lt;/P&gt;&lt;P&gt;39 stands for ASCII code for single quote.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 12:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212208#M66246</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2010-04-13T12:45:39Z</dc:date>
    </item>
    <item>
      <title>How to use a variable value as a string in a Load instruction  ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212209#M66247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;BR /&gt;both solutions are working&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 12:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-a-variable-value-as-a-string-in-a-Load-instruction/m-p/212209#M66247</guid>
      <dc:creator />
      <dc:date>2010-04-13T12:56:47Z</dc:date>
    </item>
  </channel>
</rss>

