<?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: for each ... next using field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426992#M1161454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ... works fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 15:58:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-13T15:58:50Z</dc:date>
    <item>
      <title>for each ... next using field values</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426990#M1161452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys ... I need some help for the following problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp; use a for each ... next loop with values of a field. Inside the loop I am using the loop variable to control a where clause.&lt;/P&gt;&lt;P&gt;My code is looking like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE _jivemacro_uid="_13527919004995488" class="jive_text_macro jive_macro_quote  _jivemacro_uid_13527919004995488"&gt;&lt;P&gt;NoConcatenate Test:&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;Concat(DISTINCT A, ', ') as MyList&lt;/P&gt;&lt;P&gt;From Data.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each MyVar in MyList&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some command ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where A = '$(MyVar)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Now Qlikview ignores my comma segmented list (MyList) and take MyList as one value.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 07:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426990#M1161452</guid>
      <dc:creator />
      <dc:date>2012-11-13T07:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: for each ... next using field values</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426991#M1161453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need extra single quotes inside the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a better way to do this is:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;NoConcatenate &lt;/P&gt;&lt;P&gt;Load Distinct A From Data.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for vRow = 1 to NoOfRows('Test')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Let MyVar = Peek('A',vRow-1,'Test');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; some command ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Where A = '$(MyVar)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; //HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 08:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426991#M1161453</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-11-13T08:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: for each ... next using field values</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426992#M1161454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ... works fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 15:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-next-using-field-values/m-p/426992#M1161454</guid>
      <dc:creator />
      <dc:date>2012-11-13T15:58:50Z</dc:date>
    </item>
  </channel>
</rss>

