<?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 Change a variable in LOAD statement except for the first row in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-a-variable-in-LOAD-statement-except-for-the-first-row-in/m-p/1528904#M438598</link>
    <description>&lt;P&gt;I tried to update a variable in the LOAD statement for every row of a table that is loaded by using the statement except for the first row. A part of my script is:&lt;/P&gt;&lt;PRE&gt;LET startsaldoLiquideMiddelen = NUM(29700);

LOAD JaarWeek																				AS #JaarWeek,
NUM(NUM($(startsaldoLiquideMiddelen)) - NUM(CreditBedragOpen) + NUM(DebetBedragOpen), '#.##0')					AS SaldoLiquideMiddelen
RESIDENT Cashflow;&lt;/PRE&gt;&lt;P&gt;My goal is to create the field&amp;nbsp;&lt;STRONG&gt;SaldoLiquideMiddelen&lt;/STRONG&gt; that equals to 29700 for the first row and got the new value to insert in the second row. The third row needs the output of the formula where the second value is the input value. The fourth value is the output of the formula where the third value is the input and so on. How do I change the variable for each row except the first row?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:48:03 GMT</pubDate>
    <dc:creator>qlikmark1990</dc:creator>
    <dc:date>2024-11-16T04:48:03Z</dc:date>
    <item>
      <title>Change a variable in LOAD statement except for the first row in field</title>
      <link>https://community.qlik.com/t5/QlikView/Change-a-variable-in-LOAD-statement-except-for-the-first-row-in/m-p/1528904#M438598</link>
      <description>&lt;P&gt;I tried to update a variable in the LOAD statement for every row of a table that is loaded by using the statement except for the first row. A part of my script is:&lt;/P&gt;&lt;PRE&gt;LET startsaldoLiquideMiddelen = NUM(29700);

LOAD JaarWeek																				AS #JaarWeek,
NUM(NUM($(startsaldoLiquideMiddelen)) - NUM(CreditBedragOpen) + NUM(DebetBedragOpen), '#.##0')					AS SaldoLiquideMiddelen
RESIDENT Cashflow;&lt;/PRE&gt;&lt;P&gt;My goal is to create the field&amp;nbsp;&lt;STRONG&gt;SaldoLiquideMiddelen&lt;/STRONG&gt; that equals to 29700 for the first row and got the new value to insert in the second row. The third row needs the output of the formula where the second value is the input value. The fourth value is the output of the formula where the third value is the input and so on. How do I change the variable for each row except the first row?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-a-variable-in-LOAD-statement-except-for-the-first-row-in/m-p/1528904#M438598</guid>
      <dc:creator>qlikmark1990</dc:creator>
      <dc:date>2024-11-16T04:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change a variable in LOAD statement except for the first row in field</title>
      <link>https://community.qlik.com/t5/QlikView/Change-a-variable-in-LOAD-statement-except-for-the-first-row-in/m-p/1528919#M438599</link>
      <description>&lt;P&gt;Perhaps like this&lt;/P&gt;&lt;PRE&gt;LET startsaldoLiquideMiddelen = NUM(29700);

LOAD &lt;BR /&gt;    JaarWeek AS #JaarWeek,
    NUM(If(RowNo()=1, $(startsaldoLiquideMiddelen) , Peek(SaldoLiquideMiddelen)) - NUM(CreditBedragOpen) + NUM(DebetBedragOpen), '#.##0')	AS SaldoLiquideMiddelen
RESIDENT Cashflow;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 11:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-a-variable-in-LOAD-statement-except-for-the-first-row-in/m-p/1528919#M438599</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-10T11:52:10Z</dc:date>
    </item>
  </channel>
</rss>

