<?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: Building a link table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443505#M97507</link>
    <description>&lt;P&gt;The typical approaches to associate two fact tables with a single common field is using a CONCATENATE or a JOIN, with your specific use case and data model in mind.&lt;/P&gt;
&lt;P&gt;Since you mentioned creating a link table to establish a many-to-many relationship between your fact tables, concatenating seems the obvious approach.&lt;/P&gt;
&lt;P&gt;Questionnaire:&lt;BR /&gt;LOAD SEA_id,&lt;BR /&gt;Questionnaire_ID,&lt;BR /&gt;Donation_Date as Date,&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;Concatenate&lt;/P&gt;
&lt;P&gt;Collaboration:&lt;BR /&gt;LOAD SEA_id,&lt;BR /&gt;Collaboration_ID,&lt;BR /&gt;Registration_Date as Date&lt;BR /&gt;...&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 13:19:03 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2024-04-22T13:19:03Z</dc:date>
    <item>
      <title>Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443496#M97505</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;I have the following fact tables, their only common -as is- field is SEA_ID. The cardinality between the tables is many-to-many for field SEA_id. For the first table the unique primary key is Questionnaire_ID and for the second is Collaboration_ID. I tried making a link table for these two as I need them for my app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what I studied, I need to create the link table by using the common dimension field, but then how would I comment out the dim field SEA_id from the facts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought about doing so:&lt;/P&gt;
&lt;P&gt;Questionnaire:&lt;BR /&gt;LOAD&lt;BR /&gt;Questionnaire_ID,&lt;BR /&gt;//SEA_id,&lt;BR /&gt;//Donation_Date as Date&lt;BR /&gt;SEA_id&amp;amp;Donation_Date as Key,&lt;/P&gt;
&lt;P&gt;(other fields that describe the fact table but are uncommon between fact tables)&lt;BR /&gt;from Questionnaire.qvd;&lt;/P&gt;
&lt;P&gt;Collaboration:&lt;BR /&gt;LOAD&lt;BR /&gt;Collaboration_ID,&lt;BR /&gt;//SEA_id,&lt;BR /&gt;//Registration_Date as Date,&lt;/P&gt;
&lt;P&gt;SEA_id&amp;amp;Registration_Date as Key,&lt;/P&gt;
&lt;P&gt;(other fields that describe the fact table but are uncommon between fact tables)&lt;BR /&gt;from Collaborations.qvd;&lt;/P&gt;
&lt;P&gt;Link:&lt;BR /&gt;LOAD Key,&lt;BR /&gt;'Donation' as DateType&lt;BR /&gt;resident Questionnaire;&lt;BR /&gt;Concatenate(Link)&lt;BR /&gt;LOAD Key,&lt;BR /&gt;'Registration' as DateType&lt;BR /&gt;resident Collaboration;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How does this look to you? Can you please help me out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443496#M97505</guid>
      <dc:creator>joioan</dc:creator>
      <dc:date>2024-11-15T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443505#M97507</link>
      <description>&lt;P&gt;The typical approaches to associate two fact tables with a single common field is using a CONCATENATE or a JOIN, with your specific use case and data model in mind.&lt;/P&gt;
&lt;P&gt;Since you mentioned creating a link table to establish a many-to-many relationship between your fact tables, concatenating seems the obvious approach.&lt;/P&gt;
&lt;P&gt;Questionnaire:&lt;BR /&gt;LOAD SEA_id,&lt;BR /&gt;Questionnaire_ID,&lt;BR /&gt;Donation_Date as Date,&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;Concatenate&lt;/P&gt;
&lt;P&gt;Collaboration:&lt;BR /&gt;LOAD SEA_id,&lt;BR /&gt;Collaboration_ID,&lt;BR /&gt;Registration_Date as Date&lt;BR /&gt;...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443505#M97507</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-04-22T13:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443507#M97508</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;thank you for your quick response. In fact, I want to handle this many-to-many relationship, not establish it (not sure if you mean the same &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;
&lt;P&gt;Can I concatenate the fact tables no matter the column number or the field names?&lt;/P&gt;
&lt;P&gt;Also, the script you provided is for concatenation of both tables (right?). Do I keep the date fields with alias "Date" or as they were initially (eg&amp;nbsp;&lt;SPAN&gt;Donation_Date).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443507#M97508</guid>
      <dc:creator>joioan</dc:creator>
      <dc:date>2024-04-22T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443514#M97509</link>
      <description>&lt;P&gt;The Concatenate prefix combines two tables even if their columns aren't identical. Any fields that don't match between the tables will be filled with null values in the resulting table.&lt;/P&gt;
&lt;P&gt;Renaming date fields the same is not a requirement but rather a good practice for consistency and clarity in your data model.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443514#M97509</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-04-22T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443516#M97510</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, but then&amp;nbsp; if I rename them the same,&amp;nbsp; I suppose I still have to create a DateType flag to distinguish Dates, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also for this case, I would like to know -for educational reasons- why it could not work as an approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443516#M97510</guid>
      <dc:creator>joioan</dc:creator>
      <dc:date>2024-04-22T13:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443535#M97512</link>
      <description>&lt;P&gt;Including a flag (Type) to distinguish the origin of the fields can be particularly beneficial, especially when the two tables share identical structures.&lt;/P&gt;
&lt;P&gt;Link table would equally work, given your scenario, Concatenate is a more simplistic approach with excellent performance.&lt;/P&gt;
&lt;P&gt;Read more from here :&lt;A title="Concatenate and Link tables" href="https://community.qlik.com/cyjdu72974/attachments/cyjdu72974/qlik-design-blog/2790/1/QlikView%20Technical%20Brief%20-%20Concatenate%20and%20Link%20tables.pdf" target="_self"&gt;Concatenate and Link tables&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443535#M97512</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-04-22T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Building a link table</title>
      <link>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443536#M97513</link>
      <description>&lt;P&gt;I will study this material as well and I will return with comments &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it is better performance-wise to create a massive fact table instead of a link fact table with connections to the other fact tables (and maybe other dimension tables), noted.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 14:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Building-a-link-table/m-p/2443536#M97513</guid>
      <dc:creator>joioan</dc:creator>
      <dc:date>2024-04-22T14:10:25Z</dc:date>
    </item>
  </channel>
</rss>

