<?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 Use variables in Load expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734027#M1080587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;LEGEND:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"tempXlsPlanChart" is a Qlikview table imported table from Excel.&lt;/P&gt;&lt;P&gt;"tempXlsPlanChartColumn" is a Qlikview table imported from SQL server ,consists of "tempXlsPlanChart" columns with some attributes.&amp;nbsp; "ClmnXls" is the desired one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create new Qlikview table &lt;SPAN style="text-decoration: underline;"&gt;within the script editor&lt;/SPAN&gt; that loads from "tempXlsPlanChart " &lt;SPAN style="text-decoration: underline;"&gt;only the columns &lt;/SPAN&gt;that are specified in "tempXlsPlanChartColumn" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;SCRIPT :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//Concat delivers the column names (as one string with comma delimiter) from tempXlsPlanChart to vStr variable &lt;/P&gt;&lt;P&gt;SET vStr=Concat(ClmnXls, ', ');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;//the vStr variable expends to its string value and creates the column names in the Load statement. &lt;/P&gt;&lt;P&gt;LOAD $(vStr)&lt;/P&gt;&lt;P&gt;RESIDENT tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;PROBLEM&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;When the compiler runs it doesn't expand the variable in the LOAD statement, and sends error message.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does some one have a clue how to solve this problem ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 13:42:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-08T13:42:48Z</dc:date>
    <item>
      <title>Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734027#M1080587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;LEGEND:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"tempXlsPlanChart" is a Qlikview table imported table from Excel.&lt;/P&gt;&lt;P&gt;"tempXlsPlanChartColumn" is a Qlikview table imported from SQL server ,consists of "tempXlsPlanChart" columns with some attributes.&amp;nbsp; "ClmnXls" is the desired one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create new Qlikview table &lt;SPAN style="text-decoration: underline;"&gt;within the script editor&lt;/SPAN&gt; that loads from "tempXlsPlanChart " &lt;SPAN style="text-decoration: underline;"&gt;only the columns &lt;/SPAN&gt;that are specified in "tempXlsPlanChartColumn" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;SCRIPT :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//Concat delivers the column names (as one string with comma delimiter) from tempXlsPlanChart to vStr variable &lt;/P&gt;&lt;P&gt;SET vStr=Concat(ClmnXls, ', ');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;//the vStr variable expends to its string value and creates the column names in the Load statement. &lt;/P&gt;&lt;P&gt;LOAD $(vStr)&lt;/P&gt;&lt;P&gt;RESIDENT tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;PROBLEM&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;When the compiler runs it doesn't expand the variable in the LOAD statement, and sends error message.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does some one have a clue how to solve this problem ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734027#M1080587</guid>
      <dc:creator />
      <dc:date>2014-07-08T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734028#M1080588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with&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;LOAD $(=vStr)&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;or &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;LOAD $(=$(vStr))&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;&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;let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734028#M1080588</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-08T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734029#M1080589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fast replied!&lt;/P&gt;&lt;P&gt;But unfortunately the compiler send Syntax Error message,&lt;/P&gt;&lt;P&gt;This time the variable expansion is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734029#M1080589</guid>
      <dc:creator />
      <dc:date>2014-07-08T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734030#M1080590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure vStr doesn't have an extra comma on the end of the last fieldname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734030#M1080590</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-07-08T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734031#M1080591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried LET instead of SET ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734031#M1080591</guid>
      <dc:creator />
      <dc:date>2014-07-08T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734032#M1080592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;&lt;STRONG&gt;SCRIPT :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Concat delivers the column names (as one string with comma delimiter) from tempXlsPlanChart to vStr variable&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET vStr=Concat(ClmnXls, ', ');&lt;/P&gt;



&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The only thing this does is create a variable vStr with the value 'Concat(ClmnXls', ','). It does not create a variable with a comma separated list of column names. If you want that you need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp:&lt;/P&gt;&lt;P&gt;load concat(ClmnXls, ',' ) as ColumnNames&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;tempXlsPlanChartColumn;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStr = peek('ColumnNames');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load $(vStr)&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;tempXlsPlanChart&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734032#M1080592</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-08T14:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734033#M1080593</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 think you need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ConcatFields:&lt;/P&gt;&lt;P&gt;LOAD Concat(ClmnXls, ',') As ConcatFields&lt;/P&gt;&lt;P&gt;RESIDENT tempXlsPlanChartColumn;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStr = Peek('ConcatFields');&lt;/P&gt;&lt;P&gt;DROP Table ConcatFields;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD $(vStr)&lt;/P&gt;&lt;P&gt;RESIDENT tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand your field names and table clearly, so you may need to adjust this to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734033#M1080593</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-07-08T14:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734034#M1080594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Concat function don't create extra comma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 07:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734034#M1080594</guid>
      <dc:creator />
      <dc:date>2014-07-09T07:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734035#M1080595</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;"&gt;The compiler sends error message also when using LET function (variable expansion is null).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 07:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734035#M1080595</guid>
      <dc:creator />
      <dc:date>2014-07-09T07:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734036#M1080596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The compiler doesn't execute the concat function it leaves it as : concat(distinct ClmnXls, ',' ). and therefore error message occurs. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734036#M1080596</guid>
      <dc:creator />
      <dc:date>2014-07-09T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734037#M1080597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The compiler doesn't execute the concat function it leaves it as : concat(distinct ClmnXls, ',' ). and therefore error message occurs. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734037#M1080597</guid>
      <dc:creator />
      <dc:date>2014-07-09T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734038#M1080598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;might be best to use an alias&lt;/P&gt;&lt;P&gt;debug it and publish what the value of the var is&lt;/P&gt;&lt;P&gt;keep trying different stuff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 08:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734038#M1080598</guid>
      <dc:creator />
      <dc:date>2014-07-09T08:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734039#M1080599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will be more specific ,&lt;/P&gt;&lt;P&gt;I think this has something to do with variables and functions :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;This one works&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i=0 to vRows-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vStr= vStr &amp;amp; Peek('ClmnXls',i,'tempXlsPlanChartColumns') &amp;amp; ', ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vStr=left(vStr,len(vStr)-2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;load $(vStr)&lt;/P&gt;&lt;P&gt;Resident tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;But this one doesn't&lt;/SPAN&gt; :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vStr=Concat (ClmnXls, ', ');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;load $(vStr)&lt;/P&gt;&lt;P&gt;Resident tempXlsPlanChart;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Would like to understand why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 10:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734039#M1080599</guid>
      <dc:creator />
      <dc:date>2014-07-09T10:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734040#M1080600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution.&lt;/P&gt;&lt;P&gt;While the code concats ALL ClmnXls, is there a way to concat only ClmnXls that are currently *selected* the load script? This function is wanted to do conditional loading.&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Crystal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734040#M1080600</guid>
      <dc:creator />
      <dc:date>2014-07-21T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734041#M1080601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to analyse a portion of the data loaded by the load script you will need to use set analysis, read up on it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as it is complex but well worth while as it’s extremely powerfull …&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 11:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734041#M1080601</guid>
      <dc:creator />
      <dc:date>2014-07-21T11:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734042#M1080602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Clive, I do use set analysis, but the formulas used in load script seems behave differnt from those in the Expression or Dimension. The concat formula works on tabs didn't work in load script. &lt;BR /&gt;e.g.&lt;/P&gt;&lt;P&gt;= concat&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp; ClmnXls&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39),',') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;works in the a text obejct but let vStr = concat&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39)&amp;amp; ClmnXls&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39),',')&amp;nbsp; does not work in the load script. vStr become &amp;lt;NULL&amp;gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Do you have any advises of using formula (e.g concat) in load script? Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 02:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734042#M1080602</guid>
      <dc:creator />
      <dc:date>2014-07-22T02:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734043#M1080603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Crystal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the concat was a goup aggregation function, can you also use it in let?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(doesn’t it need to be in a load / group by?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 05:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734043#M1080603</guid>
      <dc:creator />
      <dc:date>2014-07-22T05:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734044#M1080604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I though global should be fine, just like sum() can be used globally, concat can also be used globally?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 07:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734044#M1080604</guid>
      <dc:creator />
      <dc:date>2014-07-30T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in Load expression</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734045#M1080605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-Load-expression/m-p/734045#M1080605</guid>
      <dc:creator />
      <dc:date>2014-07-30T13:45:31Z</dc:date>
    </item>
  </channel>
</rss>

