<?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: Looping through Table Rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395619#M487782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek is way to slow. How do I loop trough the data in a faster way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 13:15:03 GMT</pubDate>
    <dc:creator>torstein</dc:creator>
    <dc:date>2015-09-28T13:15:03Z</dc:date>
    <item>
      <title>Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395610#M487773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to Loop through each row in a table, set variables to the values of each row in order to do some repetitive processing.&amp;nbsp; Seems like a simple construct that would be used often.&amp;nbsp; Here is what I thought would work, but for some reason the data coming back doesn't seem to match across the column for each row returned, and as I work through index by third iteration I'm getting nulls on the second column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;BOX:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[BOXName, VOLCnt&lt;BR /&gt; "MRC", 49152&lt;BR /&gt; "TTN", 49152&lt;BR /&gt; "PLT", 12288&lt;BR /&gt; "GLD", 12288&lt;BR /&gt; "SVR", 12288&lt;BR /&gt; "IRN", 12288&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;NumRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOX');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(NumRows)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vBox&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOXName',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vVolCnt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('VOLCnt',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FieldIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOXName','$(vBox)'));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//do some stuff....&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Result set for variables after run:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="157" style="border: 1px solid rgb(0, 0, 0); width: 132px; height: 93px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 8pt;"&gt;&lt;STRONG&gt;vBox&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 8pt;"&gt;&lt;STRONG&gt;vVolCnt&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;MRC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;49152&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;TTN&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;12288&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;PLT&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;NULL&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;GLD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;NULL&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;SVR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;NULL&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;IRN&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;NULL&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I'm missing something very elementary here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 19:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395610#M487773</guid>
      <dc:creator />
      <dc:date>2013-02-01T19:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395611#M487774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be using Peek instead,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;vBox&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;('BOXName',&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;vVolCnt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;('&lt;SPAN style="color: #737373; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;VOLCnt&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 19:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395611#M487774</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-02-01T19:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395612#M487775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.. and specify the table name in your peak function, as a third parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395612#M487775</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-02-01T20:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395613#M487776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&amp;nbsp; It seems I totally overthought this one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek with the index works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Lew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395613#M487776</guid>
      <dc:creator />
      <dc:date>2013-02-01T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395614#M487777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfect without a third parameter of table name, but for grins I tried adding this third parameter...it didn't break anything, but the result was the creation of a new variable of the same name as table that would get set to NULL on each peek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel's suggestion worked as is, although seem tables have origin 0 not 1 in QV, so had to change my FOR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;NumRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOX');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(NumRows)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;-1&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vBox&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOXName',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vVolCnt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('VOLCnt',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&amp;nbsp; //do some repetitive stuff....&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395614#M487777</guid>
      <dc:creator />
      <dc:date>2013-02-01T20:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395615#M487778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I might be over thinking it, but it might be important when you have the same value repeating multiple times in different tables rows, and possibly the same field present in multiple tables. then, when you specify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peek ('field', index) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it becomes unclear what the index should represent - the value index in a field list, or a row in a table? ...what table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the two formats might work identically in simple cases when the field only exists in the same table, and when values are fairly unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395615#M487778</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-02-01T20:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395616#M487779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Oleg, thought you might be onto something here. Once I put an SQL Select into the loop, the "Peeks" returned NULL on the second iteration as though somehow the SQL statement cleared the values from the Inline Table.&amp;nbsp; Started thinking your qualification with the third parameter might be the ticket, but didn't make a difference &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on why peek is acting differently now that there is an SQL statment in the mix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;NumRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOX');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(NumRows)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;-1&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vBox&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOXName',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vVolCnt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('VOLCnt',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;my_include&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= '..\..\Include\BDS-IT\odbc-' &amp;amp; '$(vBox)' &amp;amp; '.qvs';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(include=$(my_include))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; DISC_USAGE:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vBox)' AS SRC_SYS_CD,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISC_DATE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL_TYPE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN_FREE_TB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX_FREE_TB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp; NEO.DISK_USAGE_VIEW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOLUME_NAME LIKE '$FC%' &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAVING &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL_CNT = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vVolCnt)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR READ UNCOMMITTED ACCESS IN SHARE MODE;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 22:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395616#M487779</guid>
      <dc:creator />
      <dc:date>2013-02-01T22:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395617#M487780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your SQL statement appears after the peek()... you don't show the part of the script tha loads the previous table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL statement by itself shouldn't change much. If your previous statement is also a new SQL, - check if your fields have the same upper-lower case as you spelled them in the peek(). It looks like your SQL only returns upper case fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 02:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395617#M487780</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-02-02T02:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395618#M487781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only previous statement is the INLINE LOAD....so very puzzled &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&amp;nbsp; Doesn't seem like the SQL SELECT should have any effect on these "Peeks", but it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOX:&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[BOXName, VOLCnt&lt;BR /&gt; "MRC", 49152&lt;BR /&gt; "TTN", 49152&lt;BR /&gt; "PLT", 12288&lt;BR /&gt; "GLD", 12288&lt;BR /&gt; "SVR", 12288&lt;BR /&gt; "IRN", 12288&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;NumRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOX');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(NumRows)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;-1&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vBox&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('BOXName',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,BOX);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vVolCnt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('VOLCnt',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,BOX);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;my_include&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= '..\..\Include\BDS-IT\odbc-' &amp;amp; '$(vBox)' &amp;amp; '.qvs';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(include=$(my_include))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; DISC_USAGE:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vBox)' AS SRC_SYS_CD,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISC_DATE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL_TYPE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN_FREE_TB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX_FREE_TB,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp; NEO.DISK_USAGE_VIEW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOLUME_NAME LIKE '$FC%' &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAVING &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL_CNT = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vVolCnt)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR READ UNCOMMITTED ACCESS IN SHARE MODE;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 03:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395618#M487781</guid>
      <dc:creator />
      <dc:date>2013-02-02T03:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395619#M487782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek is way to slow. How do I loop trough the data in a faster way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395619#M487782</guid>
      <dc:creator>torstein</dc:creator>
      <dc:date>2015-09-28T13:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395620#M487783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about when you use the value from one to find the row in a different table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 15:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395620#M487783</guid>
      <dc:creator />
      <dc:date>2016-01-28T15:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395621#M487784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there any final conclusion on this one? I have an example where I did &lt;STRONG&gt;not&lt;/STRONG&gt; use the third parameter, and I got unexpected results. To be safe, and like Henric says &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/09/02/loops-in-the-script"&gt;here&lt;/A&gt; and &lt;A href="https://community.qlikview.com/thread/66096"&gt;here&lt;/A&gt;, I will use a third parameter; the name of the Table where I expect to find that Field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 22:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/395621#M487784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-20T22:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/1638224#M487786</link>
      <description>&lt;P&gt;Great solution! Just the count of the variable i should start from 0:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOX:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;INLINE&lt;/SPAN&gt; &lt;SPAN&gt;[BOXName, VOLCnt&lt;BR /&gt;"MRC", 49152&lt;BR /&gt;"TTN", 49152&lt;BR /&gt;"PLT", 12288&lt;BR /&gt;"GLD", 12288&lt;BR /&gt;"SVR", 12288&lt;BR /&gt;"IRN", 12288&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;NumRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN&gt;('BOX')-1;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;I&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;=0 &lt;/SPAN&gt;&lt;SPAN&gt;to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;$(NumRows)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;vBox&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Peek&lt;/SPAN&gt;&lt;SPAN&gt;('BOXName',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;vVolCnt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Peek&lt;/SPAN&gt;&lt;SPAN&gt;('&lt;SPAN&gt;VOLCnt&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN&gt;//do some stuff....&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let &lt;STRONG&gt;&lt;I&gt;vBox&lt;/I&gt;&lt;/STRONG&gt;= Null();&lt;BR /&gt;Let &lt;STRONG&gt;&lt;I&gt;NumRows&lt;/I&gt;&lt;/STRONG&gt;= Null();&lt;BR /&gt;Let&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;I&lt;/I&gt;&lt;/STRONG&gt; = Null();&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 09:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/1638224#M487786</guid>
      <dc:creator>SebSz</dc:creator>
      <dc:date>2019-10-22T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through Table Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/1681510#M487788</link>
      <description>&lt;P&gt;Like if you still come to this thread to copy and paste the For loop instead of typing it out.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 22:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-through-Table-Rows/m-p/1681510#M487788</guid>
      <dc:creator>Harry_M</dc:creator>
      <dc:date>2020-03-03T22:46:08Z</dc:date>
    </item>
  </channel>
</rss>

