<?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: Qlik Sense - Mapping two Tables together in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283526#M2649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can connect those tables by creating Composite key of Company Name and Project&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 07:31:45 GMT</pubDate>
    <dc:creator>shraddha_g</dc:creator>
    <dc:date>2017-02-17T07:31:45Z</dc:date>
    <item>
      <title>Qlik Sense - Mapping two Tables together</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283525#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables that both contain "Company Name" and "Project", and then multiple non-matching columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the tables to act how a synthetic key would where the non-matching columns can communicate due to the Company Name and Project being the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other tables in my data load have had no problem connecting through synthetic keys but there is this one instance where two tables are not communicating well so I want to map them together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this in the data load editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 00:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283525#M2648</guid>
      <dc:creator />
      <dc:date>2017-02-16T00:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Mapping two Tables together</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283526#M2649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can connect those tables by creating Composite key of Company Name and Project&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 07:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283526#M2649</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-02-17T07:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Mapping two Tables together</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283527#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, synthetic key MUST be avoided. &lt;/P&gt;&lt;P&gt;If you only have few tables, Qlik maybe can still process it correctly, but if you have more tables, synthetic key not only make wrong mapping and does not work, it can also cause disaster by eating all your memory and even disk and crash your system, we had this bloody lesson before when adding several extra tabled to a exist app which have synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid synthetic key, you need delete or join the tables with same key, and also using composite key to connect the tables as Shraddha pointed out, which can fix your current problem. But if you add more tables to your current app with synthetic key, you may get trouble gain in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link below is a blog talk about how to avoid synthetic key.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/" title="https://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/"&gt;https://www.analyticsvidhya.com/blog/2014/12/remove-synthetic-key-concatenation-link-table-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zhihong&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283527#M2650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-17T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Mapping two Tables together</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283528#M2651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea of creating a synthetic key can be understood from this fragment of code with comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//create source tables Table01 and Table02 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Table01:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'Company'&amp;amp;Div(Rand()*10, 1) as Company,&lt;/P&gt;&lt;P&gt;'Poject'&amp;amp;Div(Rand()*10, 1)&amp;nbsp; as Project,&lt;/P&gt;&lt;P&gt;'Dimension'&amp;amp;Div(Rand()*10, 1)&amp;nbsp; as Dimension1,&lt;/P&gt;&lt;P&gt;Div(Rand()*10, 1) as Volume1&lt;/P&gt;&lt;P&gt;AutoGenerate 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Table02:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'Company'&amp;amp;Div(Rand()*10, 1) as Company,&lt;/P&gt;&lt;P&gt;'Poject'&amp;amp;Div(Rand()*10, 1)&amp;nbsp; as Project,&lt;/P&gt;&lt;P&gt;'Dimension'&amp;amp;Div(Rand()*10, 1)&amp;nbsp; as Dimension2,&lt;/P&gt;&lt;P&gt;Div(Rand()*10, 1) as Volume2&lt;/P&gt;&lt;P&gt;AutoGenerate 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//form a synthetic key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;Company &amp;amp; '|' &amp;amp; Project as %Key&lt;/P&gt;&lt;P&gt;Resident Table01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;Company &amp;amp; '|' &amp;amp; Project as %Key&lt;/P&gt;&lt;P&gt;Resident Table02;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Tables Table01, Table02;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//create a connection table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ConnectTable:&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;%Key,&lt;/P&gt;&lt;P&gt;%Key as %TimeKey,&lt;/P&gt;&lt;P&gt;Company, &lt;/P&gt;&lt;P&gt;Project&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (ConnectTable)&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;%Key,&lt;/P&gt;&lt;P&gt;Company,&lt;/P&gt;&lt;P&gt;Project&lt;/P&gt;&lt;P&gt;Resident Table2&lt;/P&gt;&lt;P&gt;Where Not Exists(%TimeKey, %Key);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//delete unneeded fields&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Drop Fields %TimeKey, Company, Project&lt;/P&gt;&lt;P&gt;From ConnectTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Fields&lt;/P&gt;&lt;P&gt;Company, Project&lt;/P&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Fields&lt;/P&gt;&lt;P&gt;Company, Project&lt;/P&gt;&lt;P&gt;From Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/153479_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Mapping-two-Tables-together/m-p/1283528#M2651</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-17T09:22:42Z</dc:date>
    </item>
  </channel>
</rss>

