<?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: load variable from outside in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570662#M680577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES ,IT is OK now&amp;nbsp; use trace load .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 06:02:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-14T06:02:42Z</dc:date>
    <item>
      <title>load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570653#M680568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I load&amp;nbsp; many variables&amp;nbsp; from .xls&amp;nbsp; into QVW . But I can't load the following :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; sum({&amp;lt;year={"$(=left(saledate,4)-1)"}&amp;gt;} sales) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;after loading , it became :&amp;nbsp;&amp;nbsp; sum({&amp;lt;year={''}&amp;gt;} sales) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if I set it in QVW ,it is ok , How to do it&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 09:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570653#M680568</guid>
      <dc:creator />
      <dc:date>2014-04-13T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570654#M680569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you load your variables from .xls? How does your current script look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 10:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570654#M680569</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-13T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570655#M680570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is like the following :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" width="64"&gt;VariablesTable:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;LOAD VariableName, &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VariableValue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;FROM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;[QVDStore\VariablesTable.QVD]&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;(qvd); or xls &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;//* Set Equation variables&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;//* The following loop allowing for loading numerous variables dynamically, &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;//* without having to call them by name.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;for i=0 to noofrows('VariablesTable')-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;&amp;nbsp; LET var_name= peek('VariableName',i,'VariablesTable');&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;&amp;nbsp; LET $(var_name) = peek('VariableValue',i,'VariablesTable');&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;&amp;nbsp; TRACE Load Variable: $(var_name) = $($(var_name));&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;next i&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;all variables seem ok . but for like this kind of&amp;nbsp; '=..' is not ok .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 10:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570655#M680570</guid>
      <dc:creator />
      <dc:date>2014-04-13T10:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570656#M680571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vNumberOfRows = NoOfRows('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VariablesTable&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;For i = 0 to (vNumberOfRows - 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vVariable_Name = Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VariableName&lt;/SPAN&gt;',i,'VariableTable');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let [$(vVariable_Name)] = Peek('VariableValue',I,'VariableTable');&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 11:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570656#M680571</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-13T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570657#M680572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my script is : for i=0 to noofrows('VariablesTable')-1&amp;nbsp;&amp;nbsp; LET var_name= peek('VariableName',i,'VariablesTable');&amp;nbsp;&amp;nbsp; LET $(var_name) = peek('VariableValue',i,'VariablesTable'); //&amp;nbsp; TRACE Load Variable:&amp;nbsp;&amp;nbsp; let $(var_name) =' $($(var_name))'; next i I thinks the problem is '=' in variables ,It seem calcault it before .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 11:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570657#M680572</guid>
      <dc:creator />
      <dc:date>2014-04-13T11:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570658#M680573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you have stored Varaible Expression / Values in Excel File?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to store like &lt;/P&gt;&lt;P&gt;SUM(Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not like&lt;/P&gt;&lt;P&gt;=SUM(Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 11:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570658#M680573</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-13T11:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570659#M680574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider that your expression is something like below...&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="338"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="338"&gt;only(&amp;nbsp; {$&amp;lt;Year={"$(=max(Year))"}&amp;gt;} Year)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If you Trace this expression during Reload $(=Max(Year)) will be shown as blank as during loading no Year is selected.&lt;/P&gt;&lt;P&gt;May be I am not able to explain the exact technical information.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 11:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570659#M680574</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-13T11:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570660#M680575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; let $(var_name) =' $($(var_name))&lt;/SPAN&gt;---- this is wrong for your kind of expresion, I must use&amp;nbsp;&amp;nbsp; :TRACE Load Variable: $(var_name) = $($(var_name));&amp;nbsp; it is ok now . I can't explan it also. thanks your help ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 12:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570660#M680575</guid>
      <dc:creator />
      <dc:date>2014-04-13T12:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570661#M680576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I also think it's just a problem with your TRACE statement, where the dollar sign expansion in your expression you&amp;nbsp; evaluate in your variable won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should have got the correct variables build right from the start, when looking in the variable overview after load, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2014 12:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570661#M680576</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-13T12:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: load variable from outside</title>
      <link>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570662#M680577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES ,IT is OK now&amp;nbsp; use trace load .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 06:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-variable-from-outside/m-p/570662#M680577</guid>
      <dc:creator />
      <dc:date>2014-04-14T06:02:42Z</dc:date>
    </item>
  </channel>
</rss>

