<?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: How to use List more efficiently in For Each...Next? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518206#M687002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The load concat function can create a table with a single row containing a csv list of store ids Peek this data into a variable, then use this variable as the stores in your for..each loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 22:36:55 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2014-01-15T22:36:55Z</dc:date>
    <item>
      <title>How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518205#M687001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I need to use For Each loop to run query on different schema in the same database. All the schema have the same tables with different data. Below is a sample query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each vStore in 's10', 's11', 's12', 's13','s14', 's15', 's16','s17','s18', 's19'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accounts:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT companyid, firstname, lastname, custid&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM $(vStore).customer as a &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;WHERE date(postdate) = '2011-12-31';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NEXT vStore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Code above it just shows 10 schema in the list (after 'in') however, I have 40 schema to run the query on. The editor forces me to add schema in the list in the same line. Is it possible to break the line in the list? when I type the stores in the next line it shows syntax error. Keeping list of 40 schema in the same line makes it difficult to read and edit the script. Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518205#M687001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-15T22:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518206#M687002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The load concat function can create a table with a single row containing a csv list of store ids Peek this data into a variable, then use this variable as the stores in your for..each loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518206#M687002</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-15T22:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518207#M687003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For schema=1 to 50&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT companyid, firstname, lastname, custid&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM 's$(schema).customer' as a &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHERE date(postdate) = '2011-12-31';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;next;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518207#M687003</guid>
      <dc:creator>iktrayanov</dc:creator>
      <dc:date>2014-01-15T22:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518208#M687004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each v in 's1', 's2', 's3', 's4'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each vStore in '$(v)0', '$(v)1', '$(v)2', '$(v)3',&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; ..........&amp;nbsp; '$(v)9'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace $(vStore);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NEXT vStore&lt;/P&gt;&lt;P&gt;NEXT v&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518208#M687004</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-15T22:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518209#M687005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13898276262677724" jivemacro_uid="_13898276262677724"&gt;
&lt;P&gt;Stores:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s3&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s50&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;for i = 0 to NoOfRows('Stores') - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; let vStore=Peek('F1',i,'Stores');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; accounts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LOAD *;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SELECT companyid, firstname, lastname, custid&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FROM $(vStore).customer as a&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WHERE date(postdate) = '2011-12-31';&lt;/P&gt;
&lt;P&gt;NEXT vStore&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 23:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518209#M687005</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-15T23:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518210#M687006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, do you have a version of this for the variable being in the Where part of the statement instead of the From part of the statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have clients in a client account names field of a file, and I need a script to load itself for one client at a time, then the next, and the next sequentially rather than try to load them all from the file simultaneously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 23:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518210#M687006</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-02-27T23:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518211#M687007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The $() variables will get substituted anywhere in the statement. So if you load up a table of ClientId, and peek() them into a variable named "vClient", your WHERE clause can look like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE ClientId='$(vClient)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 00:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518211#M687007</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-28T00:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518212#M687008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, can you assume I’m an idiot and need help on the rest of that syntax? ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say I have these ClientIds: BiffCo, MartyCo, and DocCo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load UserId,&lt;/P&gt;&lt;P&gt;          ClientId,&lt;/P&gt;&lt;P&gt;          Sum(SomeRecords) as PivotedRecords&lt;/P&gt;&lt;P&gt;From C:\Documents\Biometrics.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where ClientId=’$(vClient)’&lt;/P&gt;&lt;P&gt;Group by UserId, ClientId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you put the table, peek, and the for each/next stuff precisely where they’d go around that script?  I’ve been banging my head on it most of the day and pretty sure I’ve just got some line in the wrong order or the wrong symbol or missing symbol somewhere or other.  Rather than share my whole mess, hoping to see a simple clean piece of script that would work independent of anything else. ☺&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 01:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518212#M687008</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-02-28T01:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518213#M687009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here's a specific example.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Load a list of ClientIds from somewhere&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ClientTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;aClient&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;BiffCo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt; MartyCo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;DocCo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR i = 0 to NoOfRows('ClientTable')-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vClient = peek('aClient',&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;$(i)&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;ClientTable&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load UserId,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClientId,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(SomeRecords) as PivotedRecords&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From C:\Documents\Biometrics.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Where ClientId=’$(vClient)’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Group by UserId, ClientId&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT i&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Before we get too far afield, I'm wondering why you need to load one client at a time? I just want to understand if we're discussing the best solution.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518213#M687009</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-28T17:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518214#M687010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I got it right:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; background-color: rgba(255, 255, 255, 0);"&gt;LET vClient = peek('&lt;SPAN style="font-style: inherit;"&gt;ClientTable&lt;/SPAN&gt;', $(i), 'aClient');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;it should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; background-color: rgba(255, 255, 255, 0);"&gt;LET vClient = peek('aClient', $(i), 'ClientTable');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;Then it works well. Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 16:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518214#M687010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use List more efficiently in For Each...Next?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518215#M687011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing out my mistake. I've corrected the post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also added the "-1" to NoOfRows()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 19:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-List-more-efficiently-in-For-Each-Next/m-p/518215#M687011</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-03-06T19:38:48Z</dc:date>
    </item>
  </channel>
</rss>

