<?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: Join two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504049#M188383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chriss,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is part of advanced Data Modeling. You can learn some basic ideas in the standard QlikView education curriculum (Developer Class), a bit more in the "Advanced Topics in Design and Development".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read about data modeling in Barry Harmsen's book "QlikView 11 for Developers".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beyond that, the only advanced technical venue that I'm aware of is the &lt;A href="http://www.masterssummit.com/"&gt;Masters Summit for QlikView&lt;/A&gt;, where Barry Harmsen is teaching an excellent 4-hours Data Modeling class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 14:52:29 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2013-09-10T14:52:29Z</dc:date>
    <item>
      <title>Join two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504046#M188380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables like the following the common field for both the table is Currency_Code from Rate table and Currency from Fact table.&lt;/P&gt;&lt;P&gt;when I join together using a syntactic key i can see may duplicate data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement is as&amp;nbsp; I need a table that should match the same currency in the both tables and the also need to get the Ex_Rate on if the invoice date is&amp;nbsp; = Date in Rate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give a idea.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rate&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Currency_Code,&lt;/P&gt;&lt;P&gt;Ex_Rate&lt;/P&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Location,&lt;/P&gt;&lt;P&gt;Invoice_Number,&lt;/P&gt;&lt;P&gt;Invoice_Date,&lt;/P&gt;&lt;P&gt;Weight,&lt;/P&gt;&lt;P&gt;Currency,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504046#M188380</guid>
      <dc:creator />
      <dc:date>2013-09-10T13:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504047#M188381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the Currency rate is driven by two fields - Currency Code and Date, you have 2 choices:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Keep two separated tables, linked by 2 fields, which causes the synthetic key. You may chose to replace the synthetic key with a combo key that's generated manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Join the Currency Rate into the Fact, based on the two join fields (the Currency code and the date). I'd recommend this approach, because it is likely to perform better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Fact) load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date as Invoice_Date,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Currency_Code as Currency,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ex_Rate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504047#M188381</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-09-10T13:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504048#M188382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awesome, its works like a gem... as I would like to more on this how do i learn this where I can get this stuff, please share your idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504048#M188382</guid>
      <dc:creator />
      <dc:date>2013-09-10T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504049#M188383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chriss,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is part of advanced Data Modeling. You can learn some basic ideas in the standard QlikView education curriculum (Developer Class), a bit more in the "Advanced Topics in Design and Development".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read about data modeling in Barry Harmsen's book "QlikView 11 for Developers".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beyond that, the only advanced technical venue that I'm aware of is the &lt;A href="http://www.masterssummit.com/"&gt;Masters Summit for QlikView&lt;/A&gt;, where Barry Harmsen is teaching an excellent 4-hours Data Modeling class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504049#M188383</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-09-10T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504050#M188384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable information, let me try that book &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"QlikView 11 for Developers".&lt;/SPAN&gt; The solution what your given is working fine but still I am missing one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is need to convert the Amount with a Ex_Rate when the Currency is selected, the twist is when I select the 'EUR' currency it shows the invoices who's Currency owe's the EUR the same for all the currency but what I want when I select the 'EUR' currency all the invoices based on their currency the Amount / Ex_Rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I need this in a script, please give some clue to proceed further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504050#M188384</guid>
      <dc:creator />
      <dc:date>2013-09-11T14:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504051#M188385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this is a different requirement and a different solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you want to convert all the original transactions to a common currency, for example USD or EUR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you need to calculated all the transactions in the desired currencies for the presentation. You can either pre-calculate multiple amounts in the script or keep the rates in a table and calculate it on the fly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-tables/m-p/504051#M188385</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-09-11T14:48:31Z</dc:date>
    </item>
  </channel>
</rss>

