<?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: LET variable = PEEK('field1', 0, 'MyTable') not giving a value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430494#M160516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works for me with QVD load as well.&lt;/P&gt;&lt;P&gt;Are you sure that you do not delete your variable later in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2012 19:06:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-21T19:06:13Z</dc:date>
    <item>
      <title>LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430491#M160513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the above code to store the value of a field of a table into a variable, the field only has one value, 2012.&amp;nbsp; Any ideas as to why this might be giving me nothing?&amp;nbsp; Am I missing something in the syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 16:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430491#M160513</guid>
      <dc:creator />
      <dc:date>2012-09-21T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430492#M160514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;I don't see anything wrong.&amp;nbsp; See the attched, compare with your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 16:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430492#M160514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-21T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430493#M160515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very Bizarre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I works just fine when the table the variable comes from is from an inline table, but not when the table is loaded from a qvd.&amp;nbsp; In fact, the variable doesn't even show up in the document (when I try to put it as a variable in an input box.) after a reload unless it was already created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 16:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430493#M160515</guid>
      <dc:creator />
      <dc:date>2012-09-21T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430494#M160516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works for me with QVD load as well.&lt;/P&gt;&lt;P&gt;Are you sure that you do not delete your variable later in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 19:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430494#M160516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-21T19:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430495#M160517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying to think, maybe when you actually used this value, did you use $(variable)?&lt;/P&gt;&lt;P&gt;try debug reload see what that value is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 21:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430495#M160517</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2012-09-21T21:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430496#M160518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the variable will not be created if the expression evaluates to NULL.&lt;/P&gt;&lt;P&gt;And QV won't give an error message if this happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked that table and field name are spelled correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try, if these lines return any data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vVar1 = peek('field',0,'MyTable');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vVar2 = FieldValue('field',1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vVar3 = NoOfRows('MyTable');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vVar4 = FieldValueCount('field');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible that you post your script code here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 22:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430496#M160518</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-21T22:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430497#M160519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not going to lie folks.&amp;nbsp; I did find a work around but come Tuesday when I get back, I'll test your suggestions and post the document here too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 22:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430497#M160519</guid>
      <dc:creator />
      <dc:date>2012-09-21T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430498#M160520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the file with the oddity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 22:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430498#M160520</guid>
      <dc:creator />
      <dc:date>2012-09-21T22:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430499#M160521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I got it right, your MyTable has only one value in one row, but 19 rows in total, most of them NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek() addresses a certain row in that table, but the first rows are all NULL, that's why you don't get a result back for your variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Let vVar2 = FieldValue('field',1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does work in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 22:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430499#M160521</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-21T22:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430500#M160522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brandon,&lt;/P&gt;&lt;P&gt;had a similar issue, but in my case just 'quotes' were missing...&lt;/P&gt;&lt;P&gt;wrong:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; peek(field,0,MyTable);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;right:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; peek('field',0,'MyTable');&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the answer to your question, but might be helpful for others.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 08:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/430500#M160522</guid>
      <dc:creator>berndjaegle</dc:creator>
      <dc:date>2015-01-07T08:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: LET variable = PEEK('field1', 0, 'MyTable') not giving a value</title>
      <link>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/1554824#M440586</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31917"&gt;@berndjaegle&lt;/a&gt;You're a &lt;STRONG&gt;&lt;SPAN class="ILfuVd"&gt;life-saver&lt;/SPAN&gt;! &lt;/STRONG&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-variable-PEEK-field1-0-MyTable-not-giving-a-value/m-p/1554824#M440586</guid>
      <dc:creator>rvrj</dc:creator>
      <dc:date>2019-03-11T12:34:52Z</dc:date>
    </item>
  </channel>
</rss>

