<?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 Loading variable in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342295#M126448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;You can not create dynamic variable in Load script. You have to define it in variable overview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2012 08:04:01 GMT</pubDate>
    <dc:creator>vijay_iitkgp</dc:creator>
    <dc:date>2012-04-09T08:04:01Z</dc:date>
    <item>
      <title>Loading variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342294#M126447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt; I am writing this expression in the load script to store the value of variable vShare but i am getting error.&lt;DIV&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;DIV&gt;let&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;vShare&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;BR /&gt; num(&lt;BR /&gt; ((sum({$&amp;lt;%EPID={1},Segment={'Stucks'}, TERRITORY=&amp;gt;} (eTRx_Volume))/sum({$&amp;lt;%EPID={7},Segment={'Stucks'},TERRITORY=&amp;gt;} (eTRx_Volume)))-&lt;BR /&gt; ((sum({$&amp;lt;%EPID={1},Segment={'Stucks'},TERRITORY=&amp;gt;} (eTRx_Volume))-sum({$&amp;lt;%EPID={1},Segment={'Stucks'},TERRITORY=&amp;gt;} (eTRx_Volume_Change))))/&lt;BR /&gt; ((sum({$&amp;lt;%EPID={7},Segment={'Stucks'},TERRITORY=&amp;gt;} (eTRx_Volume))-sum({$&amp;lt;%EPID={7},Segment={'Stucks'},TERRITORY=&amp;gt;} (eTRx_Volume_Change)))))&lt;BR /&gt; &lt;BR /&gt; ,'#,##0.0%'), TERRITORY)); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;If i write&lt;DIV&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;DIV&gt;let&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/STRONG&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;vShare&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; =1; then vShare is storing value 1. but i want to make it dynamic. How can i do it ??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 07:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342294#M126447</guid>
      <dc:creator />
      <dc:date>2012-04-09T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Loading variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342295#M126448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;You can not create dynamic variable in Load script. You have to define it in variable overview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 08:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342295#M126448</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-04-09T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Loading variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342296#M126449</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;Let will attempt to evaluate the expression, rather than store it and this expression will not work in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change Let to Set to store the expression in vShare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I always load complex expressions variables in this way in the load script as they are not stored in the VC system or in an load without data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 08:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-in-load-script/m-p/342296#M126449</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-09T08:27:59Z</dc:date>
    </item>
  </channel>
</rss>

