<?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 Update a field between 2 tables after load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1622814#M733515</link>
    <description>&lt;P&gt;I have the following tables loaded in Qlikview:&lt;/P&gt;&lt;P&gt;WealthLosses:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;RecNo(),&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;Prev_Day,&lt;/P&gt;&lt;P&gt;0 as Prev_Day_Balance&lt;/P&gt;&lt;P&gt;from Blah.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Balance:&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;Balance_Date,&lt;/P&gt;&lt;P&gt;Balance&lt;/P&gt;&lt;P&gt;from Blah2.xlsx&lt;/P&gt;&lt;P&gt;What I need to do is update WealthLosses.Prev_Day_Balance with Balance.Balance where the AccountNumber matches and WealthLosses.Prev_Day = Balance.Balance_Date.&amp;nbsp;&amp;nbsp;&amp;nbsp; It's worth noting that Balance has 3 million rows and a join on the front end times out.&amp;nbsp; So I'm looking for a way to populate this additional field when it loads.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>meckeard</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Update a field between 2 tables after load</title>
      <link>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1622814#M733515</link>
      <description>&lt;P&gt;I have the following tables loaded in Qlikview:&lt;/P&gt;&lt;P&gt;WealthLosses:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;RecNo(),&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;Prev_Day,&lt;/P&gt;&lt;P&gt;0 as Prev_Day_Balance&lt;/P&gt;&lt;P&gt;from Blah.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Balance:&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;Balance_Date,&lt;/P&gt;&lt;P&gt;Balance&lt;/P&gt;&lt;P&gt;from Blah2.xlsx&lt;/P&gt;&lt;P&gt;What I need to do is update WealthLosses.Prev_Day_Balance with Balance.Balance where the AccountNumber matches and WealthLosses.Prev_Day = Balance.Balance_Date.&amp;nbsp;&amp;nbsp;&amp;nbsp; It's worth noting that Balance has 3 million rows and a join on the front end times out.&amp;nbsp; So I'm looking for a way to populate this additional field when it loads.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1622814#M733515</guid>
      <dc:creator>meckeard</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update a field between 2 tables after load</title>
      <link>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1622829#M733516</link>
      <description>&lt;P&gt;There are two ways&lt;BR /&gt;1. using map (preferred)&lt;/P&gt;&lt;P&gt;Balance:&lt;BR /&gt;Mapping Load&lt;BR /&gt;AccountNumber&amp;amp;Balance_Date as key,&lt;BR /&gt;Balance&lt;BR /&gt;from Blah2.xlsx&lt;/P&gt;&lt;P&gt;WealthLosses:&lt;BR /&gt;Load&lt;BR /&gt;RecNo(),&lt;BR /&gt;AccountNumber,&lt;BR /&gt;Prev_Day,&lt;BR /&gt;ApplyMap (‘Balance’,AccountNumber&amp;amp;Prev_Day,0) as as Prev_Day_Balance&lt;BR /&gt;from Blah.xlsx&lt;BR /&gt;&lt;BR /&gt;//make sure prev_day and balance_date are in same format...if not apply date function directly while passing to applymap&lt;/P&gt;&lt;P&gt;2. using join&lt;/P&gt;&lt;P&gt;WealthLosses_pre:&lt;BR /&gt;Load&lt;BR /&gt;RecNo(),&lt;BR /&gt;AccountNumber,&lt;BR /&gt;Prev_Day,&lt;BR /&gt;from Blah.xlsx&lt;/P&gt;&lt;P&gt;innerjoin(WealthLosses_pre)&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;AccountNumber,&lt;BR /&gt;Balance_Date as Prev_Day&lt;BR /&gt;Balanceas Prev_Day_Balance&lt;/P&gt;&lt;P&gt;from Blah2.xlsx&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;WealthLosses:&lt;BR /&gt;Load&lt;BR /&gt;RecNo(),&lt;BR /&gt;AccountNumber,&lt;BR /&gt;Prev_Day,&lt;BR /&gt;alt(Prev_Day_Balance,0) as Prev_Day_Balance,&lt;/P&gt;&lt;P&gt;Resident WealthLosses_pre;&lt;/P&gt;&lt;P&gt;Drop table WealthLosses_pre;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 21:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1622829#M733516</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-09-11T21:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Update a field between 2 tables after load</title>
      <link>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1623157#M733517</link>
      <description>&lt;P&gt;Asinha,&lt;/P&gt;&lt;P&gt;Your first suggestion was very close and only needed a small tweak to work.&amp;nbsp; Thanks!&amp;nbsp; I'll keep this in mind should I need it again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another question but will start a new thread.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-a-field-between-2-tables-after-load/m-p/1623157#M733517</guid>
      <dc:creator>meckeard</dc:creator>
      <dc:date>2019-09-12T12:27:13Z</dc:date>
    </item>
  </channel>
</rss>

