<?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: Retrieve values across multiple tables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186056#M885512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus, actually both matchings V1-M1 and V2-M1 are correct, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also the matching between Matter and Invoice is Correct (i.e M1 is correctly linked to INV1, INV2 and INV3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem here is the wrong match between the Vendor and Invoice! in other words the invoices are populated based on the Matter only while discarding the Vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 10:57:20 GMT</pubDate>
    <dc:creator>nabilfa1</dc:creator>
    <dc:date>2016-09-19T10:57:20Z</dc:date>
    <item>
      <title>Retrieve values across multiple tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186052#M885506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I'm new to QlikView and learned a lot already through this wonderful community. hope to find answer to my problem!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to retrieve "Correct Values" from Multiple tables which i assume are correctly linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain what i need to achieve, There are 4 tables as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Matter: Which are business legal cases.&lt;/P&gt;&lt;P&gt;2. Invoice: Invoice related to Matter ( A Matter can have multiple invoices from 1 or more vendors (1 - M relationship) &lt;/P&gt;&lt;P&gt;3 Vendor: this is the vendor Master list where multiple vendors can be associated to 1 or more Matter M-M relationship)&lt;/P&gt;&lt;P&gt;4 Matter-Invoice: This table is to Link Matter with Invoices&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Model.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137599_Model.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a pivot chart that displays the following, for each vendor, the Matters assigned to the vendor and Invoices sent by this vendor related to each Matter.&lt;/P&gt;&lt;P&gt;Unfortunately,&amp;nbsp; the data results are not correct ( As attached below) which i somehow understand the logic behind. but i'm now desperate to find the right approach!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you may notice on the pivot chart, the invoices(INV1, INV2, INV3) are duplicated for V1 &amp;amp; V2 who are working on the same Matter (M1) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Which should NOT be the case!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Report.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/137606_Report.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached an Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your Help!&lt;/P&gt;&lt;P&gt;Fady &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186052#M885506</guid>
      <dc:creator>nabilfa1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values across multiple tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186053#M885507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which one of the matchings V1 - M1 or V2 - M1 is correct and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's either a matter of data-quality (duplicates from Matter_ID in Vendor) or you need a logic to determine which of the key-links is correct or not (and quite probably some more working-steps for them - maybe with period-fields like FromDate and ToDate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 11:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186053#M885507</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-16T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values across multiple tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186054#M885508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the vendor is only linked to the invoice via the Matter_ID, and you can have multiple vendors per matter, there is no way of deciding which to which vendor the invoice should be assigned. You need a composite key of the vendor and Matter_ID, or you need a link table to associate the vendor, matter and invoice correctly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 13:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186054#M885508</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-16T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values across multiple tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186055#M885509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan!, Is it possible to show me an example how to create a link table in this example?&lt;/P&gt;&lt;P&gt;Also not sure if i created a composite key of Vendor_ID and Mater_ID,&amp;nbsp; how this will help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 09:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186055#M885509</guid>
      <dc:creator>nabilfa1</dc:creator>
      <dc:date>2016-09-19T09:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values across multiple tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186056#M885512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus, actually both matchings V1-M1 and V2-M1 are correct, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also the matching between Matter and Invoice is Correct (i.e M1 is correctly linked to INV1, INV2 and INV3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem here is the wrong match between the Vendor and Invoice! in other words the invoices are populated based on the Matter only while discarding the Vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 10:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186056#M885512</guid>
      <dc:creator>nabilfa1</dc:creator>
      <dc:date>2016-09-19T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values across multiple tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186057#M885514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would probably go for a denormalised structure like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Matter:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Matter_ID&lt;/P&gt;&lt;P&gt;Matter_Name&lt;/P&gt;&lt;P&gt;...&amp;lt;more matter related stuff&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Matter_ID&lt;/P&gt;&lt;P&gt;Vendor_ID&lt;/P&gt;&lt;P&gt;Vendor_Name&lt;/P&gt;&lt;P&gt;Invoice_Number&lt;/P&gt;&lt;P&gt;...&amp;lt;more invoice related stuff&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV works differently to a database and the optimal structure in QV is often/usually different to the db structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a lot of vendor attributes, you could also structure like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Matter:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Matter_ID&lt;/P&gt;&lt;P&gt;Matter_Name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Matter_ID&lt;/P&gt;&lt;P&gt;Vendor_ID&lt;/P&gt;&lt;P&gt;Invoice_Number&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vendor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Vendor_ID&lt;/P&gt;&lt;P&gt;Vendor_Name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 05:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-values-across-multiple-tables/m-p/1186057#M885514</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-21T05:12:50Z</dc:date>
    </item>
  </channel>
</rss>

