<?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 Use variables in for loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1680729#M726620</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd like to loop over a table of values created in the data load editor, and use the values in the region to dynamically update the bolded text below. I'm not quite sure of the syntax/how to use vContent. Any help is much appreciated! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vRegions:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Region&lt;BR /&gt;Europe&lt;BR /&gt;Brazil&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfRows('vRegions') - 1&lt;BR /&gt;let vContent = peek('Region',$(i),'vRegions') ;&lt;BR /&gt;&lt;BR /&gt;Left Join (Table1)&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;%ID,&amp;nbsp;&lt;BR /&gt;Min([Year]) AS [Min Year &lt;STRONG&gt;Europe&lt;/STRONG&gt;],&lt;BR /&gt;Resident Table2&lt;/P&gt;&lt;P&gt;Where WildMatch([Region],'*&lt;STRONG&gt;Europe&lt;/STRONG&gt;*')&lt;/P&gt;&lt;P&gt;Group By %ID;&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mahmad</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Use variables in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1680729#M726620</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd like to loop over a table of values created in the data load editor, and use the values in the region to dynamically update the bolded text below. I'm not quite sure of the syntax/how to use vContent. Any help is much appreciated! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vRegions:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Region&lt;BR /&gt;Europe&lt;BR /&gt;Brazil&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfRows('vRegions') - 1&lt;BR /&gt;let vContent = peek('Region',$(i),'vRegions') ;&lt;BR /&gt;&lt;BR /&gt;Left Join (Table1)&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;%ID,&amp;nbsp;&lt;BR /&gt;Min([Year]) AS [Min Year &lt;STRONG&gt;Europe&lt;/STRONG&gt;],&lt;BR /&gt;Resident Table2&lt;/P&gt;&lt;P&gt;Where WildMatch([Region],'*&lt;STRONG&gt;Europe&lt;/STRONG&gt;*')&lt;/P&gt;&lt;P&gt;Group By %ID;&lt;/P&gt;&lt;P&gt;next i;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1680729#M726620</guid>
      <dc:creator>mahmad</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1680735#M726623</link>
      <description>&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For i = 0 to NoOfRows('vRegions') - 1
	Let vContent = peek('Region', i, 'vRegions') ;

	Left Join (Table1)
	LOAD DISTINCT
		%ID, 
		Min([Year]) AS [Min Year $(vContent)],
		Resident Table2
	Where WildMatch([Region],'*$(vContent)*')
	Group By %ID;

Next i&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 04:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1680735#M726623</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2020-03-02T04:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use variables in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1681108#M726625</link>
      <description>&lt;P&gt;Perfect - thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 00:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variables-in-for-loop/m-p/1681108#M726625</guid>
      <dc:creator>mahmad</dc:creator>
      <dc:date>2020-03-03T00:33:34Z</dc:date>
    </item>
  </channel>
</rss>

