<?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 evaluate a qlikview variable in the loading script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303572#M1202296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was just an example on the use of LET instead of SET.&lt;/P&gt;&lt;P&gt;Take a look at the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET Variable1 = 'Value'; // Plain Text value stored in variableSET Variable2 = $(Variable1); // Variable2 has now the value content in Variable1&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2011 10:28:13 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-02-04T10:28:13Z</dc:date>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303568#M1202292</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 define a variable in Qlikview &lt;B&gt;MyVariable&lt;/B&gt; with an expression &lt;B&gt;=MyField.&lt;/B&gt; For example, MyField have the value "Q1"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;when i use this variable in the loading script: SET v=$(&lt;B&gt;MyVariable&lt;/B&gt; ) &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i see in v the value "=MyField" and i would like in v the value Q1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if someone have a solution to obtain Q1 value in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 09:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303568#M1202292</guid>
      <dc:creator />
      <dc:date>2011-02-04T09:39:06Z</dc:date>
    </item>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303569#M1202293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Use LET instead of SET:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;B&gt;LET&lt;/B&gt; MyVariable = FieldValue('FieldName', Pos);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 09:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303569#M1202293</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-04T09:49:27Z</dc:date>
    </item>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303570#M1202294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx Miguel&lt;/P&gt;&lt;P&gt;i tried your solution Let MyVariable = FieldValue(MyField,1); MyField has 4 values Q1,Q2,Q3 and Q4. but when i debug the script i see MyVariable NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so i search to have the selected value of MyField therefore i dont know the positon in FieldValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 10:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303570#M1202294</guid>
      <dc:creator />
      <dc:date>2011-02-04T10:12:22Z</dc:date>
    </item>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303571#M1202295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and when i define MyVariable in Qlikview with the expression =FieldValue('MyField',1), i obtain Q1. It is strange in the loading script it is null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 10:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303571#M1202295</guid>
      <dc:creator />
      <dc:date>2011-02-04T10:25:05Z</dc:date>
    </item>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303572#M1202296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was just an example on the use of LET instead of SET.&lt;/P&gt;&lt;P&gt;Take a look at the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET Variable1 = 'Value'; // Plain Text value stored in variableSET Variable2 = $(Variable1); // Variable2 has now the value content in Variable1&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 10:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303572#M1202296</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-04T10:28:13Z</dc:date>
    </item>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303573#M1202297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i understand&lt;/P&gt;&lt;P&gt;if you have a variable defined by an expression in QV, you can't have her real value in other variable in the loading script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example Variable1 = MyFied and MyField have the value Q1&lt;/P&gt;&lt;P&gt;if you put that in the script :&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;SET Variable2 = $(Variable1);&lt;BR /&gt;&lt;BR /&gt;Variable2 will have the value =MyField and you can t have Q1.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 10:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303573#M1202297</guid>
      <dc:creator />
      <dc:date>2011-02-04T10:58:28Z</dc:date>
    </item>
    <item>
      <title>evaluate a qlikview variable in the loading script</title>
      <link>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303574#M1202298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok reference manual confirm my sentence&lt;/P&gt;&lt;P&gt;Variables can contain numeric or alphanumeric data. If the first character of a variable&lt;BR /&gt;value is an equal sign '=' QlikView will try to evaluate the value as a formula&lt;BR /&gt;(QlikView expression) and then display or return the result rather than the actual formula&lt;BR /&gt;text.&lt;/P&gt;&lt;P&gt;QV evaluate the formula like the value. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 12:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluate-a-qlikview-variable-in-the-loading-script/m-p/303574#M1202298</guid>
      <dc:creator />
      <dc:date>2011-02-04T12:05:45Z</dc:date>
    </item>
  </channel>
</rss>

