<?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 several columns based on values from other table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/update-a-several-columns-based-on-values-from-other-table/m-p/1517167#M40515</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in my case, i have a QVD database of 3M rows, (shipments)&lt;/P&gt;&lt;P&gt;every day the status of some of these shipments change and needs to be updated into the QVD file&lt;/P&gt;&lt;P&gt;now I incremental load a large file and update the &lt;U&gt;rows&lt;/U&gt;, this works but takes way to long (600k rows a day while only 200k are updated)&lt;/P&gt;&lt;P&gt;my table contains 25 fields, the update file contains 7 fields (only 6 fields need to be updated, 1 is a key (same as the QVD file)&lt;/P&gt;&lt;P&gt;in excel it would be index('status', match('Id','Id',0))&lt;/P&gt;&lt;P&gt;Database:&lt;BR /&gt;LOAD Id,&lt;BR /&gt;[Forwarder Ref],&lt;BR /&gt;[Forwarder Track],&lt;BR /&gt;[Customer Ref],&lt;BR /&gt;[Project Name],&lt;BR /&gt;Performance,&lt;BR /&gt;[SLA Pickup Date],&lt;BR /&gt;[Actual Pickup Date],&lt;BR /&gt;[Actual Pickup Time],&lt;BR /&gt;[Pickup Postal Code],&lt;BR /&gt;[Pickup City],&lt;BR /&gt;[Pickup Country],&lt;BR /&gt;Forwarder,&lt;BR /&gt;[SLA Delivery Date],&lt;BR /&gt;[Actual Delivery Date],&lt;BR /&gt;[Actual Delivery Time],&lt;BR /&gt;[Delivery Name],&lt;BR /&gt;[Delivery Postal Code],&lt;BR /&gt;[Delivery City],&lt;BR /&gt;[Delivery Country],&lt;BR /&gt;Status,&lt;BR /&gt;[Last Event Date],&lt;BR /&gt;[Last Event],&lt;BR /&gt;Rootcause,&lt;BR /&gt;Responsible&lt;/P&gt;&lt;P&gt;from ****&lt;/P&gt;&lt;P&gt;Update:&lt;BR /&gt;LOAD Shipment_ID as Id,&lt;BR /&gt;Actual_Delivery_Date as [Actual Delivery Date],&lt;BR /&gt;Performance,&lt;BR /&gt;Actual_Pickup_Date as [Actual Pickup Date],&lt;BR /&gt;Shipment_Status as Status,&lt;BR /&gt;Event as [Last Event],&lt;BR /&gt;Event_Date as [Last Event Date]&lt;/P&gt;&lt;P&gt;from ***&lt;/P&gt;&lt;P&gt;could someone please help me?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/i/smilies/16x16_smiley-happy.png" border="0" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 08:14:24 GMT</pubDate>
    <dc:creator>PeterHenskens</dc:creator>
    <dc:date>2018-12-06T08:14:24Z</dc:date>
    <item>
      <title>update a several columns based on values from other table</title>
      <link>https://community.qlik.com/t5/App-Development/update-a-several-columns-based-on-values-from-other-table/m-p/1517167#M40515</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in my case, i have a QVD database of 3M rows, (shipments)&lt;/P&gt;&lt;P&gt;every day the status of some of these shipments change and needs to be updated into the QVD file&lt;/P&gt;&lt;P&gt;now I incremental load a large file and update the &lt;U&gt;rows&lt;/U&gt;, this works but takes way to long (600k rows a day while only 200k are updated)&lt;/P&gt;&lt;P&gt;my table contains 25 fields, the update file contains 7 fields (only 6 fields need to be updated, 1 is a key (same as the QVD file)&lt;/P&gt;&lt;P&gt;in excel it would be index('status', match('Id','Id',0))&lt;/P&gt;&lt;P&gt;Database:&lt;BR /&gt;LOAD Id,&lt;BR /&gt;[Forwarder Ref],&lt;BR /&gt;[Forwarder Track],&lt;BR /&gt;[Customer Ref],&lt;BR /&gt;[Project Name],&lt;BR /&gt;Performance,&lt;BR /&gt;[SLA Pickup Date],&lt;BR /&gt;[Actual Pickup Date],&lt;BR /&gt;[Actual Pickup Time],&lt;BR /&gt;[Pickup Postal Code],&lt;BR /&gt;[Pickup City],&lt;BR /&gt;[Pickup Country],&lt;BR /&gt;Forwarder,&lt;BR /&gt;[SLA Delivery Date],&lt;BR /&gt;[Actual Delivery Date],&lt;BR /&gt;[Actual Delivery Time],&lt;BR /&gt;[Delivery Name],&lt;BR /&gt;[Delivery Postal Code],&lt;BR /&gt;[Delivery City],&lt;BR /&gt;[Delivery Country],&lt;BR /&gt;Status,&lt;BR /&gt;[Last Event Date],&lt;BR /&gt;[Last Event],&lt;BR /&gt;Rootcause,&lt;BR /&gt;Responsible&lt;/P&gt;&lt;P&gt;from ****&lt;/P&gt;&lt;P&gt;Update:&lt;BR /&gt;LOAD Shipment_ID as Id,&lt;BR /&gt;Actual_Delivery_Date as [Actual Delivery Date],&lt;BR /&gt;Performance,&lt;BR /&gt;Actual_Pickup_Date as [Actual Pickup Date],&lt;BR /&gt;Shipment_Status as Status,&lt;BR /&gt;Event as [Last Event],&lt;BR /&gt;Event_Date as [Last Event Date]&lt;/P&gt;&lt;P&gt;from ***&lt;/P&gt;&lt;P&gt;could someone please help me?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/i/smilies/16x16_smiley-happy.png" border="0" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 08:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/update-a-several-columns-based-on-values-from-other-table/m-p/1517167#M40515</guid>
      <dc:creator>PeterHenskens</dc:creator>
      <dc:date>2018-12-06T08:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: update a several columns based on values from other table</title>
      <link>https://community.qlik.com/t5/App-Development/update-a-several-columns-based-on-values-from-other-table/m-p/1518302#M40516</link>
      <description>&lt;P&gt;First load the records that need to be updated.&lt;/P&gt;&lt;P&gt;Left join the other 18 (25-7) fields from the database to those records&lt;/P&gt;&lt;P&gt;concatenate the 25 fields from the database using a WHERE NOT EXIST(Id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the left join consumes too much time to calculate, you could make two seperate tables for your problem, one containing the fields that need to be updated and first load the updated records and then the 'old' records. And just load the other fields from the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Sun, 09 Dec 2018 10:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/update-a-several-columns-based-on-values-from-other-table/m-p/1518302#M40516</guid>
      <dc:creator>jan_vandersypt</dc:creator>
      <dc:date>2018-12-09T10:40:33Z</dc:date>
    </item>
  </channel>
</rss>

