<?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: Key field issue - in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508544#M104539</link>
    <description>&lt;P&gt;I'm thinking something like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;left join(Table1) load Name1, Name2, Name1&amp;amp;'_'&amp;amp;Name2 as namecombined resident Table1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;namelink: load distinct namecombined, Name1 as Name resident Table1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;concatenate (namelink) load distinct namecombined, Name2 as Name resident Table1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 10:00:56 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2025-03-06T10:00:56Z</dc:date>
    <item>
      <title>Key field issue -</title>
      <link>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508437#M104528</link>
      <description>&lt;P&gt;I have 2 tables&lt;BR /&gt;Table 1:&lt;/P&gt;
&lt;P&gt;Name1&amp;nbsp; Name 2&lt;/P&gt;
&lt;P&gt;Sam&amp;nbsp; &amp;nbsp; &amp;nbsp; Sammy&lt;/P&gt;
&lt;P&gt;Matt&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Matty&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Table 2:&lt;/P&gt;
&lt;P&gt;Name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;
&lt;P&gt;Matty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name is the Key field in Table 2 and in Table 1 I want to be able to use both Name1 &amp;amp; Name 2 based on the name match in Table 2.&lt;/P&gt;
&lt;P&gt;Here Sam in Table 1 matches with Table 2 Name and Matty from Name 2 column matches with Name in Table2.&lt;/P&gt;
&lt;P&gt;I don't want to concatenate as I have 100 diff fields in both the tables...&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 13:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508437#M104528</guid>
      <dc:creator>BI_Dev</dc:creator>
      <dc:date>2025-03-05T13:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Key field issue -</title>
      <link>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508470#M104532</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table1_Transformed:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Name1 AS Name,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Name1 AS OriginalName,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 'Name1' AS SourceField&lt;/P&gt;
&lt;P&gt;RESIDENT Table1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Name2 AS Name,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Name2 AS OriginalName,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 'Name2' AS SourceField&lt;/P&gt;
&lt;P&gt;RESID&lt;SPAN&gt;ENT Table1;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508470#M104532</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-03-05T17:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Key field issue -</title>
      <link>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508536#M104538</link>
      <description>&lt;P&gt;If you want to handle it only within Qlik you probably have to use the concatenation method, but you can filter the rows to those values that are in Table2.&lt;/P&gt;
&lt;P&gt;Table2:&lt;BR /&gt;Load &lt;BR /&gt;Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table2.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;Load distinct&lt;BR /&gt;Name1 as Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table1.qvd] (qvd) where exists(Name,Name1);&lt;/P&gt;
&lt;P&gt;concatenate (Table1)&lt;BR /&gt;Load&lt;BR /&gt;Name2 as Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table1.qvd] (qvd) where exists(Name,Name2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the fields are Name1 to Name100 then you could do a loop&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;Load distinct&lt;BR /&gt;Name1 as Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table1.qvd] (qvd) where exists(Name,Name1);&lt;BR /&gt;&lt;BR /&gt;for i=2 to 100&lt;/P&gt;
&lt;P&gt;concatenate (Table1)&lt;BR /&gt;Load&lt;BR /&gt;Name$(i) as Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table1.qvd] (qvd) where exists(Name,Name$(i));&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the names are not Name1, Name2 etc then you could still do a loop over a list of the names that are used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;Load distinct&lt;BR /&gt;XXX as Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table1.qvd] (qvd) where exists(Name,XXX);&lt;BR /&gt;&lt;BR /&gt;for each vField in 'YYY','ZZZ'&lt;/P&gt;
&lt;P&gt;concatenate (Table1)&lt;BR /&gt;Load&lt;BR /&gt;$(vField) as Name,&lt;BR /&gt;OtherColumns&lt;BR /&gt;from [lib://Space:DataFiles/Table1.qvd] (qvd) where exists(Name,$(vField));&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508536#M104538</guid>
      <dc:creator>morgankejerhag</dc:creator>
      <dc:date>2025-03-06T09:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Key field issue -</title>
      <link>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508544#M104539</link>
      <description>&lt;P&gt;I'm thinking something like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;left join(Table1) load Name1, Name2, Name1&amp;amp;'_'&amp;amp;Name2 as namecombined resident Table1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;namelink: load distinct namecombined, Name1 as Name resident Table1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;concatenate (namelink) load distinct namecombined, Name2 as Name resident Table1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 10:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Key-field-issue/m-p/2508544#M104539</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2025-03-06T10:00:56Z</dc:date>
    </item>
  </channel>
</rss>

