<?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 Problem with Peek function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek-function/m-p/191359#M53471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. I use a qualify * statement (and then unqualify attributes as I need them for association) earlier in the script to ensure my data model is correct. That screwed up my peek statement because it expected a fully qualified table.attribute name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 21:18:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-17T21:18:56Z</dc:date>
    <item>
      <title>Problem with Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek-function/m-p/191358#M53470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to load meta data that has a field with values that I want as variable. Here's the the script snippet. Essentially i do while loop through a table and want to assign the contents of field KPIFormula to a variable that will be named as per the value in ReportingVarName. The issue is that peek is not returning anything (probably return null). THe script runs but there is no value associated with the variable:&lt;/P&gt;&lt;P&gt;1)mytest&lt;/P&gt;&lt;P&gt;2)myvarname and&lt;/P&gt;&lt;P&gt;3)the dynamic variable that I'd like to be set as per the value in ReportingVarName.&lt;/P&gt;&lt;P&gt;For a starter, I'd be happy if i could just get peek working on "mytest" variable. Any help is appreciated. Note that the do while loop is working because the value of RowCnter starts at 0 and ends up at 42 which is the number of rows in the table "KPIData".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KPIData:&lt;BR /&gt;LOAD [Used],&lt;BR /&gt; [Checked],&lt;BR /&gt; [Reporting Name] as KPIName,&lt;BR /&gt; [Stat Type] as KPIType,&lt;BR /&gt; [Stat Name] as StatisticName,&lt;BR /&gt; [Stat Formula] as KPIFormula,&lt;BR /&gt; [LS Table Name] as TableName,&lt;BR /&gt; [Datamart Table] as DMTableName,&lt;BR /&gt; [Datamart Column] as DMColumnName,&lt;BR /&gt; [Column Description] as KPIDescription,&lt;BR /&gt; KPIFormatValue,&lt;BR /&gt; ReportingVarName&lt;BR /&gt;FROM&lt;BR /&gt;..\KPIData\KPIData.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let KPITableRows = NoOfRows('KPIData');&lt;BR /&gt;Let RowCnter = 0;&lt;BR /&gt;&lt;BR /&gt;do while RowCnter &amp;lt; KPITableRows&lt;BR /&gt;&lt;BR /&gt; let mytest = peek('[Stat Name]', 5, 'KPIData');&lt;BR /&gt;&lt;BR /&gt; let myvarname = peek('ReportingVarName', $(RowCnter), 'KPIData');&lt;BR /&gt; let $(myvarname) = peek('KPIFormula', $(RowCnter), 'KPIData');&lt;BR /&gt; let RowCnter=RowCnter + 1;&lt;BR /&gt;&lt;BR /&gt;loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 20:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek-function/m-p/191358#M53470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-17T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Problem with Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Peek-function/m-p/191359#M53471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. I use a qualify * statement (and then unqualify attributes as I need them for association) earlier in the script to ensure my data model is correct. That screwed up my peek statement because it expected a fully qualified table.attribute name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 21:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Peek-function/m-p/191359#M53471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-17T21:18:56Z</dc:date>
    </item>
  </channel>
</rss>

