<?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 Load variables dinamically directly in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240743#M91231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like the following script:&lt;/P&gt;&lt;P&gt;Expresiones:&lt;BR /&gt;LOAD Variable,&lt;BR /&gt; Expresion&lt;BR /&gt;FROM&lt;BR /&gt;Expresiones.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;Let vNroRegistros = NoOfRows('Expresiones');&lt;/P&gt;&lt;P&gt;For vI = 0 to (vNroRegistros - 1)&lt;/P&gt;&lt;P&gt;Let vNombre_Variable = Peek('Variable',vI,'Expresiones');&lt;/P&gt;&lt;P&gt;Let [$(vNombre_Variable)] = Peek('Expresion',vI,'Expresiones');&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 20:49:13 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-10-18T20:49:13Z</dc:date>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240738#M91226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, I'm trying to configure some "configuration data" in an excel sheet, and then load them into a qlikview file and turn them into qlikview variables. But I have no Idea how to do it.&lt;/P&gt;&lt;P&gt;What I want is the following :&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;variable, value&lt;/P&gt;&lt;P&gt;vMin , 1&lt;/P&gt;&lt;P&gt;vMedium , 2&lt;/P&gt;&lt;P&gt;vMax, 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;//turn them into variables with the "let" or "set" stuff, but I have no idea about create a variable "vMin" with the value 1, and so on.&lt;/P&gt;&lt;P&gt;Could somebody help me with this stuff? Or the only way to do it is with a macro?&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240738#M91226</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-18T19:16:41Z</dc:date>
    </item>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240739#M91227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure you're going to be able to dynamically define the variable names.&lt;/P&gt;&lt;P&gt;In order to store loaded data in a variable, you would use something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Let vMin = Peek('value', 1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;I tried a couple of combinations of dollar sign expansions on the variable name, but I couldn't get anything to work. &lt;BR /&gt;A workaround may be to use a text file and the Include statement. In the text file, use: &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Set vMin = 1;&lt;BR /&gt;Set vMedium = 2;&lt;BR /&gt;...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;And then in your load, use: &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;$(Include=C:\Path\For\Text\File.txt);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;That will allow you to have all of the variable definitions in one place. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240739#M91227</guid>
      <dc:creator />
      <dc:date>2010-10-18T19:34:06Z</dc:date>
    </item>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240740#M91228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, you could put Let vMin = peek('variable',0); and then Let vMedium = peek('variable',1), etc.&lt;/P&gt;&lt;P&gt;Or you don't have to use variables. In the application you can use the expression&lt;/P&gt;&lt;P&gt;only({$&amp;lt;variable={'vMin'}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240740#M91228</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-18T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240741#M91229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for answer me so quickly.&lt;/P&gt;&lt;P&gt;What I'm trying to do is to load the data with no idea of the names of the variables, it was only a figured example.&lt;/P&gt;&lt;P&gt;Could I put the name of the variable dynamically without knowing the name of the variable?&lt;/P&gt;&lt;P&gt;Many thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 20:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240741#M91229</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-18T20:06:19Z</dc:date>
    </item>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240742#M91230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel&lt;/P&gt;&lt;P&gt;This might do what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Variable, Value&lt;BR /&gt; vMin, 1&lt;BR /&gt; vMed, 2&lt;BR /&gt; vMax, 3&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let vVariable1 = fieldvalue('Variable', 1);&lt;BR /&gt;let vValue1 = fieldvalue('Value', 1);&lt;BR /&gt;let $(vVariable1) = $(vValue1);&lt;BR /&gt;&lt;BR /&gt;let vVariable2 = fieldvalue('Variable', 2);&lt;BR /&gt;let vValue2 = fieldvalue('Value', 2);&lt;BR /&gt;let $(vVariable2) = $(vValue2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let vVariable3 = fieldvalue('Variable', 3);&lt;BR /&gt;let vValue3 = fieldvalue('Value', 3);&lt;BR /&gt;let $(vVariable3) = $(vValue3);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 20:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240742#M91230</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2010-10-18T20:38:57Z</dc:date>
    </item>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240743#M91231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like the following script:&lt;/P&gt;&lt;P&gt;Expresiones:&lt;BR /&gt;LOAD Variable,&lt;BR /&gt; Expresion&lt;BR /&gt;FROM&lt;BR /&gt;Expresiones.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;Let vNroRegistros = NoOfRows('Expresiones');&lt;/P&gt;&lt;P&gt;For vI = 0 to (vNroRegistros - 1)&lt;/P&gt;&lt;P&gt;Let vNombre_Variable = Peek('Variable',vI,'Expresiones');&lt;/P&gt;&lt;P&gt;Let [$(vNombre_Variable)] = Peek('Expresion',vI,'Expresiones');&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 20:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240743#M91231</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-18T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Load variables dinamically directly in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240744#M91232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Karl, that was exactly what I was looking for. Loading dynamically variables and their values into the script.&lt;/P&gt;&lt;P&gt;See you around!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 09:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variables-dinamically-directly-in-the-script/m-p/240744#M91232</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-19T09:03:17Z</dc:date>
    </item>
  </channel>
</rss>

