<?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 and Concatenate - Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028809#M643605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paolo, sorry but I still don't have a mental image of what you're trying and i'm close to be in busy-mode so I won't ask for a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a try of giving a hint that helps you to find a solution...&lt;/P&gt;&lt;P&gt;Can you separate the budget in another table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Budgets:&lt;/P&gt;&lt;P&gt;LOAD "Account Name"&amp;amp;'|'&amp;amp;"Ad Name" as BgtKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; budget&lt;/P&gt;&lt;P&gt;FROM/Resident/...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can join the rest of the data wich seems have no problems with duplications (duplicated budget could be a problem if you want to sum() or avg() the values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;LOAD "Account Name"&amp;amp;'|'&amp;amp;"Ad Name" as BgtKey, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;"Account Name",&lt;/SPAN&gt;&lt;BR /&gt;"Platform Name",&lt;/P&gt;&lt;P&gt;"Ad Name",&lt;/P&gt;&lt;P&gt;"ddate"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Left/Inner/Outer] Join(Table1)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00;"&gt;"Campaign Name",&lt;/SPAN&gt;&lt;BR /&gt;"Advert set name"&lt;BR /&gt;"Ad Name",&lt;/P&gt;&lt;P&gt;"ddate",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return a table wich rows will have a value in Account Name and Campaign Name, from that table you can create your linked key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still have a field in both table (ddate) with different possibities:&lt;/P&gt;&lt;P&gt;- It should be the same date in both dates so it's ok to leave in the join as it is.&lt;/P&gt;&lt;P&gt;- It will be different: You can move the ddate from Accounts to the budget table or rename it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not giving more help, hope this helps you enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 16:42:07 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-01-05T16:42:07Z</dc:date>
    <item>
      <title>Link Table and Concatenate - Question</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028805#M643601</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;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;I have 2 source files containing different fields and I have created a table with CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;"Account Name",&lt;/SPAN&gt;&lt;BR /&gt;"Platform Name",&lt;/P&gt;&lt;P&gt;"Ad Name",&lt;BR /&gt;"Budget",&lt;/P&gt;&lt;P&gt;"ddate"&lt;/P&gt;&lt;P&gt;THIS IS THE FIRST SOURCE FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00;"&gt;"Campaign Name",&lt;/SPAN&gt;&lt;BR /&gt;"Advert set name"&lt;BR /&gt;"Ad Name",&lt;/P&gt;&lt;P&gt;"ddate",&lt;/P&gt;&lt;P&gt;THIS&amp;nbsp; IS THE SECOND SOURCE FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to link this table to another table, named Table2 (THIRD SOURCE FILE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to create a Link Table&lt;BR /&gt;so I want to reload Table1 and create a key field for the Link Table, by taking 1 parameter (Account Name) from the first source file and one parameter (Campaign Name) from the second source file and doing something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Account Name"&amp;amp;'|'&amp;amp;"Campaign Name" as [%key field]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The reason is that in the THIRD SOURCE FILE, I have the same 2 parameters and that's why I wanted to create a link table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do it?&lt;BR /&gt;If not, can you suggest me another workaround so I can work on it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028805#M643601</guid>
      <dc:creator />
      <dc:date>2016-01-05T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table and Concatenate - Question</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028806#M643602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paolo,&lt;/P&gt;&lt;P&gt;You can also use autonumber(your key) for performance improvement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028806#M643602</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-01-05T15:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table and Concatenate - Question</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028807#M643603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paolo, as a workaround, you can avoid the concatenation in Table1, as none of the rows will have a value in both fields (The rows with value in "Account Name" will have a Null() in "Campaign Name" and vice versa)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your link table can be loaded with the key field and with both fields 'alone' so each one links to one of the other tables (Accounts and Campaigns), this will return the linked data between an Account and their campaigns avoiding duplicated 'budget'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linktable:&lt;/P&gt;&lt;P&gt;LOAD "Account Name"&amp;amp;'|'&amp;amp;"Campaign Name" as [%key field], // Not really needed?&lt;/P&gt;&lt;P&gt;"Account Name",&lt;/P&gt;&lt;P&gt;"Campaign Name"&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on your complete data model if this can be an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028807#M643603</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-01-05T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table and Concatenate - Question</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028808#M643604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;The thing is that I need to do the concatenation since the two tables (which are actually 5 tables) have already 1 field in common (I didn't write it since I wanted to present a simplified version of the problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what I want to do is to reload my big table (Table 1, which is the concatenation of 5 source files), and create a synthetic key with these 2 fields coming from 2 different source files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wrote something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"Account Name"&amp;amp;'|'&amp;amp;"Campaign Name" as [%key field], &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"Account Name",&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"Campaign Name"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;//FROM ...(I didn't write from... since the fields I want to load refers to different source files)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident [Table1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028808#M643604</guid>
      <dc:creator />
      <dc:date>2016-01-05T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Link Table and Concatenate - Question</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028809#M643605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paolo, sorry but I still don't have a mental image of what you're trying and i'm close to be in busy-mode so I won't ask for a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a try of giving a hint that helps you to find a solution...&lt;/P&gt;&lt;P&gt;Can you separate the budget in another table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Budgets:&lt;/P&gt;&lt;P&gt;LOAD "Account Name"&amp;amp;'|'&amp;amp;"Ad Name" as BgtKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; budget&lt;/P&gt;&lt;P&gt;FROM/Resident/...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can join the rest of the data wich seems have no problems with duplications (duplicated budget could be a problem if you want to sum() or avg() the values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;LOAD "Account Name"&amp;amp;'|'&amp;amp;"Ad Name" as BgtKey, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;"Account Name",&lt;/SPAN&gt;&lt;BR /&gt;"Platform Name",&lt;/P&gt;&lt;P&gt;"Ad Name",&lt;/P&gt;&lt;P&gt;"ddate"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Left/Inner/Outer] Join(Table1)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00;"&gt;"Campaign Name",&lt;/SPAN&gt;&lt;BR /&gt;"Advert set name"&lt;BR /&gt;"Ad Name",&lt;/P&gt;&lt;P&gt;"ddate",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return a table wich rows will have a value in Account Name and Campaign Name, from that table you can create your linked key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still have a field in both table (ddate) with different possibities:&lt;/P&gt;&lt;P&gt;- It should be the same date in both dates so it's ok to leave in the join as it is.&lt;/P&gt;&lt;P&gt;- It will be different: You can move the ddate from Accounts to the budget table or rename it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not giving more help, hope this helps you enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Table-and-Concatenate-Question/m-p/1028809#M643605</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-01-05T16:42:07Z</dc:date>
    </item>
  </channel>
</rss>

