<?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 qlikview syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186092#M50345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are at least couple of ways I think of to do that in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vFieldValue = FieldValue('FieldName', 1);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will look the value number 1 in the field FieldName and it will assign it to the vFieldValue variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vFieldValue2 = Peek('FieldName2', 0, 'Table');&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will store the first ("0") value of FieldName2 from table "Table" into variable vFieldValue2. Check the reference manual for further examples, though.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Nov 2010 12:31:49 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-11-13T12:31:49Z</dc:date>
    <item>
      <title>qlikview syntax</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186091#M50344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we assign a field value to a variable in qlikview , if yes then how ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 12:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186091#M50344</guid>
      <dc:creator />
      <dc:date>2010-11-13T12:27:26Z</dc:date>
    </item>
    <item>
      <title>qlikview syntax</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186092#M50345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are at least couple of ways I think of to do that in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vFieldValue = FieldValue('FieldName', 1);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will look the value number 1 in the field FieldName and it will assign it to the vFieldValue variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vFieldValue2 = Peek('FieldName2', 0, 'Table');&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will store the first ("0") value of FieldName2 from table "Table" into variable vFieldValue2. Check the reference manual for further examples, though.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 12:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186092#M50345</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-13T12:31:49Z</dc:date>
    </item>
    <item>
      <title>qlikview syntax</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186093#M50346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two questions here:&lt;/P&gt;&lt;P&gt;1. Can we assign a field value to a variable in qlikview&lt;BR /&gt;the answer is Yes.&lt;/P&gt;&lt;P&gt;2. How?&lt;BR /&gt;there are many ways, and the answer depends on what you want to do. Variable has one value at any given moment, but field usually has many values. So, the question is what value are you looking for.&lt;BR /&gt;Miguel showed how to assign value in the script. You can assign, for example, first value, or 2nd, or last value, etc.&lt;BR /&gt;You can assign value on the front end too, for example define variable this way if you want it to be max value of a numeric field:&lt;BR /&gt;=max(FieldName)&lt;BR /&gt;You can also to use macro to assign Field value to a variable. The major diference is that when you assign value by variable definition as above, it will be changed with selections immideately. When you assign it by a macro, it will be changed when the macro is triggered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 16:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186093#M50346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-13T16:21:28Z</dc:date>
    </item>
    <item>
      <title>qlikview syntax</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186094#M50347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i want static variable, and value come from calculating (like expression).&lt;/P&gt;&lt;P&gt;can i set static variable? how? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 16:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax/m-p/186094#M50347</guid>
      <dc:creator>marcohadiyanto</dc:creator>
      <dc:date>2010-12-20T16:46:28Z</dc:date>
    </item>
  </channel>
</rss>

