<?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: Regarding Link Tables between 2 fact tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410822#M152929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pari Pari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im not sure i understand what you mean with "straight Load" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; anyway, ive have limited load to 100 rows&amp;nbsp; and exported 3 xls representing the tables of interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data model is in the first post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 12:45:10 GMT</pubDate>
    <dc:creator>pauljohansson</dc:creator>
    <dc:date>2013-02-07T12:45:10Z</dc:date>
    <item>
      <title>Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410814#M152921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you read about how to create a link table between 2 fact tables i have on several places&lt;SPAN style="font-size: 8pt;"&gt;(for example in book "Qlikview Developer 11" page 289)&lt;/SPAN&gt; been told that i should identify the common fields between my fact tables and create one %Key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, lets say that i use the respective %Primary Key field from each fact table.&amp;nbsp; Why should this not be possibly, or am i missing out something here? Do I always need to use the same %Key field for my two seperate fact tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a data model where i use the fact table respective primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comments and thoughts are welcome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 16:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410814#M152921</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-02-06T16:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410815#M152922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"I should identify the common fields between my fact tables"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it means if your tables contain more than one common fields (if so Qlikview automaticly create synthetic kays) You should identify them to create link table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as i look at your data structure I think You don't need to create link table&lt;/P&gt;&lt;P&gt;Could You send data structure before creating LInkTable? I need to see if there are any synthetic keys...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 10:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410815#M152922</guid>
      <dc:creator />
      <dc:date>2013-02-07T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410816#M152923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need a link table here.&amp;nbsp; I would concatenate the two fact tables and create a FactType field I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 11:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410816#M152923</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-02-07T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410817#M152924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pari Pari,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What i have done is this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1)I have created a primary key for each of the fact tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_FactSalesPgMonthly:&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt;AutoNumber(CustomerKey &amp;amp; AgreementKey &amp;amp; ProductGroupKey &amp;amp; TimeKey &amp;amp; BusinessModelKey &amp;amp; IsWalletRelated &amp;amp; MainStatisticsGroupKey &amp;amp; PartyOfAgreementKey &amp;amp; CountryKey &amp;amp; CustomerGroupKey &amp;amp; CustomerStatisticsGroupKey &amp;amp; SalesDistrictKey) as FactSalesPgMonthlyKey,&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;t_FactWalletMonthly:&lt;BR /&gt;LOAD&lt;BR /&gt;AutoNumber(AgreementKey &amp;amp; ProductGroupKey &amp;amp; TimeKey &amp;amp; BusinessModelKey &amp;amp; MainStatisticsGroupKey &amp;amp; PartyOfAgreementKey &amp;amp; CountryKey) as FactWalletMonthlyKey,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;as you can see, there are many fields (but not all) that match between the fact tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I have then created a Link Table consisting of these two Primary Keys and selected dimensions from the fact tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my questions is: When i read about Link tables, all examples ive seen create a &lt;STRONG&gt;common Key Link field&lt;/STRONG&gt; with only the common fields between the two fact tables. As you can see in my data model, the respective fact table use its own field to link in via the link table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I attached the .qvw where i create the link table (ve limited the data så dont bother with that diagrams looks strange)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410817#M152924</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-02-07T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410818#M152925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that i have created the "Primary Key" for each of the fact table myself. There are several (but not all) key fields that are similiar in each of the fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know an extensive description that explains all there is to know about Link tables? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410818#M152925</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-02-07T12:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410819#M152926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cann't open Your file becouse I temporary lost my QV licence key:P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want You to do is straight load all Your tables (just first 100 load * from...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and post here Table Structure printscreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410819#M152926</guid>
      <dc:creator />
      <dc:date>2013-02-07T12:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410820#M152927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use CONCATENATE then the two tables don't need to be exactly the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410820#M152927</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-02-07T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410821#M152928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What im trying to pin point is &lt;STRONG&gt;if the field that is used to link into the link table must the same field for both of the fact tables&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at my structure you can see that I use the respective Primary Key(created by me) to link into the LinkTable for each of the fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410821#M152928</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-02-07T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410822#M152929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pari Pari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im not sure i understand what you mean with "straight Load" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; anyway, ive have limited load to 100 rows&amp;nbsp; and exported 3 xls representing the tables of interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data model is in the first post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410822#M152929</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-02-07T12:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410823#M152930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple answer is no. Both fact tables can link into the link table with different keys but you will obviously need an internal relationship in the link table..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410823#M152930</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-02-07T12:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Link Tables between 2 fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410824#M152931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, without internal relationships in the LinkTable there wont be much of linking &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thinking goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i keep all my dimension fields in the link table, i need to make sure that my fact table is linked to the link table with the "primary key". Otherwise i might risk that some of my facts wont&amp;nbsp; be "accessible" (since I with all my dimensions in the LinkTable always "start" my analysis from there).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 13:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Link-Tables-between-2-fact-tables/m-p/410824#M152931</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-02-07T13:31:46Z</dc:date>
    </item>
  </channel>
</rss>

