<?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: Qlik Sense Loading one table with overriding values from another table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530057#M38147</link>
    <description>&lt;P&gt;You could use an approach like the following:&lt;/P&gt;&lt;P&gt;m: mapping load InvoiceNumber &amp;amp; '|' &amp;amp; ProductNumber,&amp;nbsp;AdjustmentValue from adjustment.qvd (qvd);&lt;/P&gt;&lt;P&gt;invoice:&lt;BR /&gt;load *, applymap('m', InvoiceNumber &amp;amp; '|' &amp;amp; ProductNumber, Value) as ValueNew from invoice.qvd (qvd);&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 14:48:29 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-01-14T14:48:29Z</dc:date>
    <item>
      <title>Qlik Sense Loading one table with overriding values from another table</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530050#M38146</link>
      <description>&lt;P&gt;Hello, hope someone can help please.&lt;/P&gt;&lt;P&gt;I have a table of invoices and a table of invoice adjustments (both QVDs). I would like to be able to load the invoices in Qlik Sense and then load the adjustments so that the invoice values in the adjustment table replaces those in the invoice table. The invoice table has &lt;U&gt;many&lt;/U&gt; columns including InvoiceNumber, ProductNumber, Value. The adjustment table has just InvoiceNumber, ProductNumber,&amp;nbsp;AdjustmentValue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;E.g.&lt;/P&gt;&lt;P&gt;Suppose the invoice table had an invoice for a product for a value of 100.00 and the adjustment table had a row for the same invoice number and product number with an adjustment value of 75.00. I would like the result to be that for this invoice and product the value is 75.00, not the original 100.00.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 14:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530050#M38146</guid>
      <dc:creator>semgem12</dc:creator>
      <dc:date>2019-01-14T14:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Loading one table with overriding values from another table</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530057#M38147</link>
      <description>&lt;P&gt;You could use an approach like the following:&lt;/P&gt;&lt;P&gt;m: mapping load InvoiceNumber &amp;amp; '|' &amp;amp; ProductNumber,&amp;nbsp;AdjustmentValue from adjustment.qvd (qvd);&lt;/P&gt;&lt;P&gt;invoice:&lt;BR /&gt;load *, applymap('m', InvoiceNumber &amp;amp; '|' &amp;amp; ProductNumber, Value) as ValueNew from invoice.qvd (qvd);&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 14:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530057#M38147</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-14T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Loading one table with overriding values from another table</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530066#M38148</link>
      <description>&lt;P&gt;I like this solution, much better than the one I created.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530066#M38148</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2019-01-14T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Loading one table with overriding values from another table</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530068#M38149</link>
      <description>&lt;P&gt;An inferior solution to the one offered by Marcus would be something like the following.&amp;nbsp; It's more busywork than anything else.&lt;/P&gt;&lt;PRE&gt;Invoices:
LOAD *,
	"InvoiceNumber" &amp;amp; '/' &amp;amp; "ProductNumber" AS '%invoice_adjustment_key'
;
LOAD * Inline
[
	'InvoiceNumber', 'ProductNumber', 'Value'
    123, GoodProduct-34, 100
    345, GoodProduct-356, 239
]
;

InvoiceAdjustments:
LOAD "AdjustmentValue",
	"InvoiceNumber" &amp;amp; '/' &amp;amp; "ProductNumber" AS '%invoice_adjustment_key'
;    
LOAD * Inline
[
	'InvoiceNumber', 'ProductNumber', 'AdjustmentValue'
    123, GoodProduct-34, 75
]
;

DROP FIELDS InvoiceNumber, ProductNumber FROM InvoiceAdjustments
;

LEFT JOIN(Invoices)
LOAD * Resident InvoiceAdjustments
;

DROP TABLE InvoiceAdjustments
;

Invoices2:
LOAD *, If( NOT ISNULL(AdjustmentValue) AND AdjustmentValue &amp;gt; 0, 
				AdjustmentValue, Value
		) AS 'Adjusted Value'
RESIDENT Invoices        
;
DROP TABLE Invoices
;
DROP FIELD Value FROM Invoices2
;
RENAME FIELD "Adjusted Value" TO 'Value'
;

exit script
;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530068#M38149</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2019-01-14T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Loading one table with overriding values from another table</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530376#M38167</link>
      <description>&lt;P&gt;Thanks Marcus, that works fine.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 10:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Loading-one-table-with-overriding-values-from-another/m-p/1530376#M38167</guid>
      <dc:creator>semgem12</dc:creator>
      <dc:date>2019-01-15T10:49:35Z</dc:date>
    </item>
  </channel>
</rss>

