<?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: variables evalution confusion? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971246#M954040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mark i am not trying to achieve in my application just i saw this function in demo app i cannot underdand this one so for more information purpose i post that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 09:40:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-24T09:40:44Z</dc:date>
    <item>
      <title>variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971242#M954036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for i=0 to noofrows('VariablesTable')-1&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET var_name= peek('VariableName',i,'VariablesTable');&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET $(var_name) = peek('VariableValue',i,'VariablesTable');&lt;/P&gt;&lt;P&gt;&amp;nbsp; TRACE Load Variable: $(var_name) = $($(var_name));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; how it can evaluated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971242#M954036</guid>
      <dc:creator />
      <dc:date>2015-11-24T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971243#M954037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use debug option to see the evaluation.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106566_Capture.PNG" style="height: 324px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971243#M954037</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-24T09:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971244#M954038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jasna,&lt;/P&gt;&lt;P&gt;you'll need to expand 'i' when used in the peek&lt;/P&gt;&lt;P&gt;$(i)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971244#M954038</guid>
      <dc:creator />
      <dc:date>2015-11-24T09:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971245#M954039</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;I am not sure what you are trying to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't approach like approach the above maybe something like&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SET var_name= peek('VariableName',i,'VariablesTable');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LET var_Value = peek('VariableValue',i,'VariablesTable');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TRACE Load Variable: var_name = $(var_name); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some more information would be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971245#M954039</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-24T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971246#M954040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mark i am not trying to achieve in my application just i saw this function in demo app i cannot underdand this one so for more information purpose i post that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971246#M954040</guid>
      <dc:creator />
      <dc:date>2015-11-24T09:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971247#M954041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi josna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Nagaraj mentioned you can make use of the debug window to see the what values getting set in the backend.&lt;/P&gt;&lt;P&gt;or you can use the TRACE function to popup the values during the reload&lt;/P&gt;&lt;P&gt;I feel your getting confused in the $ sign expansion ? $ represent the current value of the variable &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971247#M954041</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-11-24T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971248#M954042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure where you have seen it,&lt;/P&gt;&lt;P&gt;But basically it looks like the are loading a a number of formulas and then the results and the bringing up a trace to see if they match&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Row&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Variable Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Variable value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2+2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3+3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the we would have&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LET var_name= &lt;SPAN style="font-size: 13.3333px;"&gt;2+2&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LET $(var_name) = 4;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Trace would return 4 = 4&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971248#M954042</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-24T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971249#M954043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very simple &lt;EM&gt;double-dollar expansion&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to have a list of variables in an external data file, and their values. You can store this in an Excel file or a QVD. It works as an external configuration file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is that the FOR loop first reads a variable name, and then assigns a value to that variable name. &lt;EM&gt;all without knowing the name of the variable beforehand&lt;/EM&gt;. For example, my Excel may contain the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VariableName&amp;nbsp;&amp;nbsp;&amp;nbsp; VariableValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vMySetting1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first Let stores '&lt;SPAN style="font-family: 'courier new', courier;"&gt;vMySetting&lt;/SPAN&gt;' in variable &lt;SPAN style="font-family: 'courier new', courier;"&gt;var_name&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;The second LET expands to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMySetting1 = peek(...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and assigns a value to the variable I just came to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very powerful technique. Gives you the freedom to configure your document in the wildest manner, all without visiting the load script. Ever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971249#M954043</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-24T09:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: variables evalution confusion?</title>
      <link>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971250#M954044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Josna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use this technique mostly making dynamic variables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;for i=0 to noofrows('VariablesTable')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here you're using loop from value 0 to Last number of rows - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET var_name= peek('VariableName',i,'VariablesTable');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here you're evaluating and assigning variable name to "var_name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET var_Value = peek('VariableValue',i,'VariablesTable');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Here you're evaluating and assigning variable value to "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;var_Value&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TRACE Load Variable: var_name = $(var_name);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here you're only printing variable using Trace keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more clarification, kindly find attached document and screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variables-evalution-confusion/m-p/971250#M954044</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-11-24T10:15:58Z</dc:date>
    </item>
  </channel>
</rss>

