<?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: How to link two fields from two different files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948052#M326400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the field names the same names and the tables will be linked on those field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2015 15:27:04 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-10-09T15:27:04Z</dc:date>
    <item>
      <title>How to link two fields from two different files</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948051#M326399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a quite common issue but I did not find any solution.&lt;/P&gt;&lt;P&gt;Let me explain by this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File Alfa with 4 columns&lt;/P&gt;&lt;P&gt;order number, customer, product, value&lt;/P&gt;&lt;P&gt;Each customer can be present several times depending on the orders he made (same product can by ordered several times by the same customer but each order is for a single specific product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File Beta with 3 columns&lt;/P&gt;&lt;P&gt;customer, product, features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Into file Beta each customer is repeated for each different product he buys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like associate these two files by customer and by product so &lt;STRONG&gt;only&lt;/STRONG&gt; when there is a matching of customer and product then I can have the features for that specific order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two files contain many rows so I need to do the link into the script or at expression level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I do not know how to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 15:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948051#M326399</guid>
      <dc:creator />
      <dc:date>2015-10-09T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from two different files</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948052#M326400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the field names the same names and the tables will be linked on those field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 15:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948052#M326400</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-09T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from two different files</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948053#M326401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables automatically link together in qlikview when a field has a common name between the two tables.&amp;nbsp; You must be careful though to make sure that there is only 1 field that is common between 2 tables or you will get a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also build a link table, which would be an itnermediate table that links your 2 tables together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a godd document that discusses data modeling and keys (joining tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/previewBody/7343-102-1-9596/Best Practices in Data Modeling.pdf" title="https://community.qlik.com/servlet/JiveServlet/previewBody/7343-102-1-9596/Best%20Practices%20in%20Data%20Modeling.pdf"&gt;https://community.qlik.com/servlet/JiveServlet/previewBody/7343-102-1-9596/Best%20Practices%20in%20Data%20Modeling.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948053#M326401</guid>
      <dc:creator />
      <dc:date>2015-10-09T16:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from two different files</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948054#M326402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can create a composite key based on your customer and product fields. but you need to be careful as the the field data type are string or varchar and it may have mixed case so the combination may vary as per values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948054#M326402</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2015-10-09T16:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from two different files</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948055#M326403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Composite Key like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(customer &amp;amp; product) as KEY_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in both tables and rename those fields in one of the table, to avoid synthtetic keys.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-two-different-files/m-p/948055#M326403</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-10-09T16:16:33Z</dc:date>
    </item>
  </channel>
</rss>

