<?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 Sum values in two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156089#M32088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do the left join of excel table with SQl table using currency code field.&lt;/P&gt;&lt;P&gt;Then, you can derive the ne w field.There is no difficulties...&lt;/P&gt;&lt;P&gt;What error you are getting?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Durai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2009 20:43:40 GMT</pubDate>
    <dc:creator>ipauldur</dc:creator>
    <dc:date>2009-08-12T20:43:40Z</dc:date>
    <item>
      <title>Sum values in two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156088#M32087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried to do this on my own but keep coming across errors and problems:&lt;/P&gt;&lt;P&gt;I have 2 tables relating to a number of &lt;STRONG&gt;invoices&lt;/STRONG&gt;.....&lt;/P&gt;&lt;P&gt;one SQL table - called &lt;EM&gt;DataSet:&lt;/EM&gt; (contains fields LineAmount and CurrencyCode) - The invoice table.&lt;/P&gt;&lt;P&gt;one XL table - called &lt;EM&gt;FXRates:&lt;/EM&gt; (contains fields CurrencyCode and FXRate) - The FX table.&lt;/P&gt;&lt;P&gt;In my Load Script I would like to create a new field for each &lt;STRONG&gt;Invoice&lt;/STRONG&gt; called DollarAmount that is the product of LineAmount * FXRate based on the correct CurrencyCode&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated, I've tried Joins and Speedmaps, but to no avail!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 20:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156088#M32087</guid>
      <dc:creator />
      <dc:date>2009-08-12T20:36:23Z</dc:date>
    </item>
    <item>
      <title>Sum values in two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156089#M32088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do the left join of excel table with SQl table using currency code field.&lt;/P&gt;&lt;P&gt;Then, you can derive the ne w field.There is no difficulties...&lt;/P&gt;&lt;P&gt;What error you are getting?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Durai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 20:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156089#M32088</guid>
      <dc:creator>ipauldur</dc:creator>
      <dc:date>2009-08-12T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Sum values in two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156090#M32089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There sometimes can be a issue with the single left join so when loading the data to create a temp table. Then reload this resident table multiplying LineAmount*FXRate. Drop the TempTable&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;Inv_Det_temp:&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Invoice_no,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Product,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;LineAmount,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;CurrencyCode;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;FROM&lt;/B&gt; inv.detail;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;Left join(Inv_Det)&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;CurrencyCode,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;FXRate;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;FROM&lt;/B&gt; currency.detail;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt"&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt"&gt;Inv_Det:&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Invoice_no,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Product,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Line_Amt,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;CurrencyCode,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;FXRate,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;LineAmount* FXRate as ActualAmount&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;RESIDENT &lt;B&gt;Inv_Det_temp;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt"&gt;Drop table Inv_Det_temp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 20:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156090#M32089</guid>
      <dc:creator />
      <dc:date>2009-08-12T20:51:48Z</dc:date>
    </item>
    <item>
      <title>Sum values in two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156091#M32090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There sometimes can be a issue with the single left join so when loading the data to create a temp table. Then reload this resident table multiplying LineAmount*FXRate. Drop the TempTable&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;Inv_Det_temp:&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Invoice_no,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Product,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;LineAmount,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;CurrencyCode;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;FROM&lt;/B&gt; inv.detail;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;Left join(Inv_Det)&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;CurrencyCode,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;FXRate;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; *&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;FROM&lt;/B&gt; currency.detail;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt"&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt"&gt;Inv_Det:&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;LOAD&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Invoice_no,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Product,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Line_Amt,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;CurrencyCode,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;FXRate,&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;LineAmount* FXRate as ActualAmount&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;"&gt;RESIDENT &lt;B&gt;Inv_Det_temp;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 0cm 0cm 0pt"&gt;Drop table Inv_Det_temp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 20:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156091#M32090</guid>
      <dc:creator />
      <dc:date>2009-08-12T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Sum values in two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156092#M32091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, thanks Carney!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 02:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-in-two-tables/m-p/156092#M32091</guid>
      <dc:creator />
      <dc:date>2009-08-13T02:29:56Z</dc:date>
    </item>
  </channel>
</rss>

