<?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: Link Table in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138946#M13025</link>
    <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwioyIifz8uCAxWUqJUCHUEPAecQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/254280"&gt;@GCIAMPA&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Follow the documentation with the example mentioned above by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/LoadData/understand-circular-references.htm" target="_blank"&gt;https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/LoadData/understand-circular-references.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 18:04:39 GMT</pubDate>
    <dc:creator>lind_oliveira20</dc:creator>
    <dc:date>2023-11-17T18:04:39Z</dc:date>
    <item>
      <title>Link Table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138928#M13022</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;How can I build a link table to solve the loop in the example of Qlik Help?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GCIAMPA_0-1700240727782.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120113i1E7CF749D9D0AB4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GCIAMPA_0-1700240727782.png" alt="GCIAMPA_0-1700240727782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 17:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138928#M13022</guid>
      <dc:creator>GCIAMPA</dc:creator>
      <dc:date>2023-11-17T17:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138936#M13023</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/254280"&gt;@GCIAMPA&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Try this&lt;BR /&gt;I renamed the Country field in the ProductBudget table&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;Coutry as Coutry2&lt;BR /&gt;ProductID&lt;BR /&gt;Budget &lt;BR /&gt;From(qvd)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I left it only linked to ProductID&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Or rename the ProductID table and make the connection via Coutry, from the data set&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/associations-between-logical-tables.htm" target="_blank"&gt;https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/associations-between-logical-tables.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 17:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138936#M13023</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2023-11-17T17:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138946#M13025</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwioyIifz8uCAxWUqJUCHUEPAecQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/254280"&gt;@GCIAMPA&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Follow the documentation with the example mentioned above by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/LoadData/understand-circular-references.htm" target="_blank"&gt;https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/LoadData/understand-circular-references.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 18:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2138946#M13025</guid>
      <dc:creator>lind_oliveira20</dc:creator>
      <dc:date>2023-11-17T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2139017#M13026</link>
      <description>&lt;DIV class="flex-1 overflow-hidden"&gt;
&lt;DIV class="react-scroll-to-bottom--css-wifyw-79elbk h-full"&gt;
&lt;DIV class="react-scroll-to-bottom--css-wifyw-1n7m0yu"&gt;
&lt;DIV class="flex flex-col text-sm gizmo:pb-9 dark:bg-gray-800 gizmo:dark:bg-transparent"&gt;
&lt;DIV class="w-full text-token-text-primary border-b border-black/10 gizmo:border-0 dark:border-gray-900/50 gizmo:dark:border-0 bg-gray-50 gizmo:bg-transparent dark:bg-[#444654] gizmo:dark:bg-transparent" data-testid="conversation-turn-7"&gt;
&lt;DIV class="p-4 gizmo:py-2 justify-center text-base md:gap-6 md:py-6 m-auto"&gt;
&lt;DIV class="flex flex-1 gap-4 text-base mx-auto md:gap-6 gizmo:gap-3 gizmo:md:px-5 gizmo:lg:px-1 gizmo:xl:px-5 md:max-w-2xl lg:max-w-[38rem] gizmo:md:max-w-3xl gizmo:lg:max-w-[40rem] gizmo:xl:max-w-[48rem] xl:max-w-3xl } group final-completion"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gizmo:w-full lg:w-[calc(100%-115px)] agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full gap-3 gizmo:gap-0"&gt;
&lt;DIV class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto" data-message-author-role="assistant" data-message-id="57ebcd6b-8cff-434b-bf72-8bf8c1b92549"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert dark"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="w-full pt-2 md:pt-0 border-t md:border-t-0 gizmo:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:pl-2 gizmo:pl-0 gizmo:md:pl-0 md:w-[calc(100%-.5rem)]"&gt;&lt;FORM class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"&gt;
&lt;DIV class="relative flex h-full flex-1 items-stretch md:flex-col"&gt;
&lt;DIV class="flex w-full items-center"&gt;
&lt;P&gt;In the scenario depicted, you have a circular reference or loop caused by the tables `Customers`, `Orders`, and `ProductBudget`, where the `Country` field exists in both `Customers` and `ProductBudget`. To resolve this, you can create a link table that consolidates the common fields, thus breaking the loop and maintaining the associations between the tables.&lt;/P&gt;
&lt;P&gt;Here's a step-by-step guide on how to create a link table in Qlik Sense to resolve the loop:&lt;/P&gt;
&lt;P&gt;1. **Identify Common Fields**: Determine which fields are creating the loop. In your case, it seems `Country` is the common field.&lt;/P&gt;
&lt;P&gt;2. **Create a Composite Key**: In both `Customers` and `ProductBudget`, create a composite key that combines the fields that link to the `Orders` table. If `Country` is the only common field between `Customers` and `ProductBudget`, you can use this field alone as a key.&lt;/P&gt;
&lt;P&gt;3. **Load the Main Tables**: Load the `Customers` and `ProductBudget` tables, creating a new field that concatenates the keys.&lt;/P&gt;
&lt;P&gt;Customers:&lt;BR /&gt;LOAD&lt;BR /&gt;CustomerID,&lt;BR /&gt;Country,&lt;BR /&gt;CustomerName,&lt;BR /&gt;Country as CustomerCountry // Create a unique name for the Country field in Customers&lt;BR /&gt;FROM [source];&lt;/P&gt;
&lt;P&gt;ProductBudget:&lt;BR /&gt;LOAD&lt;BR /&gt;ProductID,&lt;BR /&gt;Country,&lt;BR /&gt;Budget,&lt;BR /&gt;Country as ProductCountry // Create a unique name for the Country field in ProductBudget&lt;BR /&gt;FROM [source];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;4. **Create a Link Table**: Load a new table that contains the unique keys from `Customers` and `ProductBudget`.&lt;/P&gt;
&lt;P&gt;LinkTable:&lt;BR /&gt;LOAD&lt;BR /&gt;CustomerID,&lt;BR /&gt;Country as LinkCountry // Use the original field name from Customers&lt;BR /&gt;RESIDENT Customers;&lt;/P&gt;
&lt;P&gt;CONCATENATE (LinkTable)&lt;BR /&gt;LOAD&lt;BR /&gt;ProductID,&lt;BR /&gt;Country as LinkCountry // Use the same field name as the above Country field to ensure they link&lt;BR /&gt;RESIDENT ProductBudget;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;5. **Load the Orders Table**: Load the `Orders` table as it is, ensuring it contains the fields that link to `CustomerID` and `ProductID`.&lt;/P&gt;
&lt;P&gt;Orders:&lt;BR /&gt;LOAD&lt;BR /&gt;CustomerID,&lt;BR /&gt;ProductID,&lt;BR /&gt;OrderID,&lt;BR /&gt;Quantity&lt;BR /&gt;FROM [source];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;6. **Reload the Data**: After setting up the script, reload your data. The link table should now manage the associations, and the circular reference should be resolved.&lt;/P&gt;
&lt;P&gt;By creating a link table (`LinkTable`), you centralize the common fields (`Country`), allowing both `Customers` and `ProductBudget` to connect to `Orders` without causing a loop. The `LinkCountry` field in the link table will be associated with both `CustomerCountry` and `ProductCountry` fields, preserving the relationships without creating a synthetic key or circular reference.&lt;/P&gt;
&lt;P&gt;Remember to replace `[source]` with the actual data source paths or connection strings for your tables. Also, ensure that your data model accommodates these changes, as creating a link table may require adjusting your existing visualizations to use the new fields properly.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FORM&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Nov 2023 20:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2139017#M13026</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2023-11-17T20:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2139037#M13027</link>
      <description>&lt;P&gt;You don't need a link table. You need to rename one of the Country fields. In reality, there is no association with the country the customer is from and the country the product is from. However, your analysis requirements may include what customers and what products come from different countries or how many customers buy products in their own country versus not their own country etc. If you provide better context, we can provide more specific answers.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 21:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2139037#M13027</guid>
      <dc:creator>whiteymcaces</dc:creator>
      <dc:date>2023-11-17T21:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2139356#M13036</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/254280"&gt;@GCIAMPA&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I believe your topic has already had several valid responses.&lt;/P&gt;
&lt;P&gt;Find the topic and mark the solution as accepted&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Link-Table/m-p/2139356#M13036</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2023-11-20T11:54:15Z</dc:date>
    </item>
  </channel>
</rss>

