<?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 Using variables in load script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820736#M11293</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 have an issue with a data load script in Qlik Sense 1.1, when I inserted a variable into FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Works well in normal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P&gt;FROM [lib://example\example.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Works well with path variable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vExamplePath = '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;lib://example\';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vExamplePath)&lt;/SPAN&gt;example.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;But does not work with fullpath variable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET vExamplePath = '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;lib://example\example.xlsx&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vExamplePath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any suggestion?&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;Thank You!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Undergrinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 14:15:33 GMT</pubDate>
    <dc:creator>undergrinder</dc:creator>
    <dc:date>2015-03-30T14:15:33Z</dc:date>
    <item>
      <title>Using variables in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820736#M11293</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 have an issue with a data load script in Qlik Sense 1.1, when I inserted a variable into FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Works well in normal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P&gt;FROM [lib://example\example.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Works well with path variable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vExamplePath = '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;lib://example\';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vExamplePath)&lt;/SPAN&gt;example.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;But does not work with fullpath variable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LET vExamplePath = '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;lib://example\example.xlsx&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; Column2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vExamplePath)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any suggestion?&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;Thank You!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Undergrinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 14:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820736#M11293</guid>
      <dc:creator>undergrinder</dc:creator>
      <dc:date>2015-03-30T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820737#M11294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this: - surround in [ ] as in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vPth = 'lib://data/Excel_Report_1.xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempInit:&lt;/P&gt;&lt;P&gt;CrossTable (Item,Sales,7)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'North America' as Continent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'United Sates' as Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Southern' as Region,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; State,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(OrderDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(OrderDate) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bananas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Oranges&lt;/P&gt;&lt;P&gt;FROM [$(vPth)]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 4 lines, table is Southern)&lt;/P&gt;&lt;P&gt;Where State &amp;lt;&amp;gt; 'Total';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark the appropriate replies as CORRECT / HELPFUL so our team and other members know that your question(s) has been answered to your satisfaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike Tarallo&lt;/P&gt;&lt;P&gt;Qlik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 14:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820737#M11294</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2015-03-30T14:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in load script</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820738#M11295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was the right solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gábor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variables-in-load-script/m-p/820738#M11295</guid>
      <dc:creator>undergrinder</dc:creator>
      <dc:date>2015-03-30T15:08:35Z</dc:date>
    </item>
  </channel>
</rss>

