<?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 a field as a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169131#M40053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the PEEK-command, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET variable = PEEK('field1', 0, 'MyTable')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This would load the first record, you may sort the table accordingly or create a special table with MIN- or MAX-values.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 19:11:34 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2009-11-30T19:11:34Z</dc:date>
    <item>
      <title>Loading a field as a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169130#M40052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to set the value of a variable to the value of a field loaded from a qvd?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;file.qvd;&lt;/P&gt;&lt;P&gt;SET variable = field1;&lt;/P&gt;&lt;P&gt;When I do this the variable returns the text field1 as opposed to the value in field1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 18:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169130#M40052</guid>
      <dc:creator />
      <dc:date>2009-11-30T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Loading a field as a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169131#M40053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the PEEK-command, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SET variable = PEEK('field1', 0, 'MyTable')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This would load the first record, you may sort the table accordingly or create a special table with MIN- or MAX-values.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 19:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169131#M40053</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-30T19:11:34Z</dc:date>
    </item>
    <item>
      <title>Loading a field as a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169132#M40054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 19:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169132#M40054</guid>
      <dc:creator />
      <dc:date>2009-11-30T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a field as a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169133#M40055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&amp;nbsp; I am using the LET variable = PEEK('field1', 0, 'MyTable') syntax for a field that has only one value and row.&amp;nbsp; For some reason it is not giving a value for the variable.&amp;nbsp; Am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 15:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-field-as-a-variable/m-p/169133#M40055</guid>
      <dc:creator />
      <dc:date>2012-09-21T15:54:56Z</dc:date>
    </item>
  </channel>
</rss>

