<?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: Simple For...Next Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367044#M702093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this one works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;tblusers:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Users&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;aalfonso&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;aantolini&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;FOR i = 1 to 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;LET arg = &lt;STRONG&gt;fieldvalue&lt;/STRONG&gt;('Users',$(i));&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEST:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * INLINE&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;[&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(arg)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 11:14:57 GMT</pubDate>
    <dc:creator>Qvmaster2019</dc:creator>
    <dc:date>2012-07-25T11:14:57Z</dc:date>
    <item>
      <title>Simple For...Next Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367043#M702092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one is only getting the first record (aalfonso):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tblusers:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Users&lt;/P&gt;&lt;P&gt;aalfonso&lt;/P&gt;&lt;P&gt;aantolini&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FOR i = 0 to 1 &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET arg = peek('Users',$(i));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TEST:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LOAD * INLINE&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Test&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(arg)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;];&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367043#M702092</guid>
      <dc:creator>Qvmaster2019</dc:creator>
      <dc:date>2012-07-25T11:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple For...Next Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367044#M702093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this one works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;tblusers:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Users&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;aalfonso&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;aantolini&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;FOR i = 1 to 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;LET arg = &lt;STRONG&gt;fieldvalue&lt;/STRONG&gt;('Users',$(i));&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEST:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * INLINE&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;[&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(arg)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; padding: 0 0 0 30px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367044#M702093</guid>
      <dc:creator>Qvmaster2019</dc:creator>
      <dc:date>2012-07-25T11:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Simple For...Next Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367045#M702094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, both make sense. In the first case when using Peek() you are not specifying any table, so Peek() will return the last distinct value in the field 'Users', as you will see the values of the field in a listbox. Instead, this line will return as expected (two different values):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13432154195029655" jivemacro_uid="_13432154195029655"&gt;&lt;P&gt;LET arg = Peek('Users', $(i), 'tblusers');&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FieldValue() returns the value with that index number sorted by load order, regardless whether the value is or is not distinct or unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367045#M702094</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-07-25T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simple For...Next Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367046#M702095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-For-Next-Not-Working/m-p/367046#M702095</guid>
      <dc:creator>Qvmaster2019</dc:creator>
      <dc:date>2012-07-25T11:27:52Z</dc:date>
    </item>
  </channel>
</rss>

