<?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 Please Help : I am going to be crazy whith my Script ! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399412#M148637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a quite simple script and i need to create a specific key whit several Budget code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no pb with code when I limit the load only with budget codes BD1 or BD2 and when i load only BRI code, but when i do a For i...with BD1, BD2, BRI, i have pb with BRI code and i don't understand why;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Champ introuvable - &amp;lt;Section 0 : &amp;gt;&lt;/P&gt;&lt;P&gt;F_COMPTA_BRI:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt; [Section 0 : ] as CPT_KeyBRI_AXE1_,&lt;/P&gt;&lt;P&gt; 'BRI' as TECH_CPTA_CodeBudget&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident&amp;nbsp; F_COMPTA_TEMP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there is a pb with the loop and BRI code and the variables but i don't find way to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to find an issue since a moment and i am going to be crasy...&lt;/P&gt;&lt;P&gt; There is someone who can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you by advance, and in attached files qvw and qvd data to reproduce the pb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Franck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Nov 2012 14:29:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-04T14:29:30Z</dc:date>
    <item>
      <title>Please Help : I am going to be crazy whith my Script !</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399412#M148637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a quite simple script and i need to create a specific key whit several Budget code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no pb with code when I limit the load only with budget codes BD1 or BD2 and when i load only BRI code, but when i do a For i...with BD1, BD2, BRI, i have pb with BRI code and i don't understand why;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Champ introuvable - &amp;lt;Section 0 : &amp;gt;&lt;/P&gt;&lt;P&gt;F_COMPTA_BRI:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt; [Section 0 : ] as CPT_KeyBRI_AXE1_,&lt;/P&gt;&lt;P&gt; 'BRI' as TECH_CPTA_CodeBudget&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident&amp;nbsp; F_COMPTA_TEMP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there is a pb with the loop and BRI code and the variables but i don't find way to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to find an issue since a moment and i am going to be crasy...&lt;/P&gt;&lt;P&gt; There is someone who can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you by advance, and in attached files qvw and qvd data to reproduce the pb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Franck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 14:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399412#M148637</guid>
      <dc:creator />
      <dc:date>2012-11-04T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help : I am going to be crazy whith my Script !</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399413#M148638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldindex() and fieldvalue() functions are not accessing rows in a table, but distinct values of a field (in load order).&lt;/P&gt;&lt;P&gt;Field AXE1 shows multiple occurences of value AFF. So the field has only two distinct values, your third load will fail because there is no value for index 3.&lt;/P&gt;&lt;P&gt;You probably want to use peek() function instead, to address the value in the table, indexed by table row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let Vaxe1BUD_$(VcodeBUD)=Peek('AXE1',$(i)-1,'PARAMBUD');&lt;/P&gt;&lt;P&gt;let Vaxe2BUD_$(VcodeBUD)=Peek('AXE2',$(i)-1,'PARAMBUD');&lt;/P&gt;&lt;P&gt;let Vaxe3BUD_$(VcodeBUD)=Peek('AXE3',$(i)-1,'PARAMBUD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that peek() index starts with 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these lines changed, your script runs to the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 21:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399413#M148638</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-04T21:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help : I am going to be crazy whith my Script !</title>
      <link>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399414#M148639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan !&lt;/P&gt;&lt;P&gt;Thanks a lot for your help. It's ok now !!!&lt;/P&gt;&lt;P&gt;Really thank you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 11:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-Help-I-am-going-to-be-crazy-whith-my-Script/m-p/399414#M148639</guid>
      <dc:creator />
      <dc:date>2012-11-05T11:05:32Z</dc:date>
    </item>
  </channel>
</rss>

