<?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: New Field Creation - Join and Synthetic keys in the Data Load Editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1816942#M66874</link>
    <description>&lt;P&gt;do you have a sample qvf file to share ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 10:09:59 GMT</pubDate>
    <dc:creator>Sammy_AK</dc:creator>
    <dc:date>2021-06-22T10:09:59Z</dc:date>
    <item>
      <title>New Field Creation - Join and Synthetic keys in the Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1813535#M66438</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble creating a new field in the data load editor. The script is below the message.&lt;/P&gt;&lt;P&gt;Here is the data model (capture 1).&lt;/P&gt;&lt;P&gt;I want to avoid any synthetic key to appear when I create this new 'IA/VIA' field but I need to load within the table 2 dimensions that are keys from other tables.&lt;/P&gt;&lt;P&gt;I tried dropping 2 of the dimensions (I still need one key) but it still didn't work ... (see capture 2) The IA/VIA field doesn't appear and the synthetic keys don't go...&lt;/P&gt;&lt;P&gt;I don't know if I did properly the join or if I need to add a group by clause (I don't understand how it works).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 2 dimensions that are keys from other table are "Project Name", "Responsible Name" and "IA GBU" (and probably customer name but I forgot it in the script).&lt;/P&gt;&lt;P&gt;I don't think the issue is coming from the way the new field itself is defined but more of the structure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SCRIPT:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IA_VIA_Definition:&lt;/P&gt;&lt;P&gt;LOAD "Project Name","Customer Name","Project Program","Responsible Name" resident BO_ProjectsCost;&lt;/P&gt;&lt;P&gt;Join(IA_VIA_Definition)&lt;/P&gt;&lt;P&gt;LOAD "Responsible Name","IA GBU" resident Responsible_Data;&lt;/P&gt;&lt;P&gt;Join(IA_VIA_Definition)&lt;BR /&gt;Load if("IA GBU"=A or "IA GBU"=B&amp;nbsp; or "IA GBU"=C,'IA',&lt;BR /&gt;if(("IA GBU"=D or "IA GBU"=E) and Left("Customer Name",4)='SITE' and "Customer Name"&amp;lt;&amp;gt;'SITE - xxx'&lt;BR /&gt;and "Project Program"&amp;lt;&amp;gt;'Hello', 'VIA', 'OTHER')) AS "IA/VIA" ;&lt;/P&gt;&lt;P&gt;Drop field "Responsible Name","IA GBU" from BO_ProjectsCost;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 07:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1813535#M66438</guid>
      <dc:creator>abonnery</dc:creator>
      <dc:date>2021-06-08T07:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: New Field Creation - Join and Synthetic keys in the Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1813741#M66472</link>
      <description>&lt;P&gt;synthetic keys are created on data association, which is that if more than 1 table has more than 1 common column names then synthetic keys are created. for e.g. Table a has ID, Color, product, amount and table b has ID, color, country, value. here a synthetic key is created between ID and color as they are common keys between 2 tables. synthetic keys are not bad but as long as they give correct output they are fine to be there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in your case, i understand that there are more than 1 common column between more than 1 table so synthetic keys are created. you can rename the column names apart from the columns you want to associate data. similarly in the above example, if i want to get rid of synthetic keys i would rename /delete color column either from table a or b. i would rename the column or give a alias for column color to prd_color (i.e. color as prd_color) and this should solve the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this updated Script:&lt;/P&gt;&lt;P&gt;SCRIPT:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IA_VIA_Definition:&lt;/P&gt;&lt;P&gt;LOAD "Project Name","Customer Name","Project Program","Responsible Name" resident BO_ProjectsCost;&lt;/P&gt;&lt;P&gt;Join(IA_VIA_Definition)&lt;/P&gt;&lt;P&gt;LOAD "Responsible Name","IA GBU" resident Responsible_Data;&lt;/P&gt;&lt;P&gt;IA_VIA:&lt;BR /&gt;Load if("IA GBU"=A or "IA GBU"=B&amp;nbsp; or "IA GBU"=C,'IA',&lt;BR /&gt;if(("IA GBU"=D or "IA GBU"=E) and Left("Customer Name",4)='SITE' and "Customer Name"&amp;lt;&amp;gt;'SITE - xxx'&lt;BR /&gt;and "Project Program"&amp;lt;&amp;gt;'Hello', 'VIA', 'OTHER')) AS "IA/VIA",&lt;/P&gt;&lt;P&gt;"Project Name"&lt;/P&gt;&lt;P&gt;resident&amp;nbsp;IA_VIA_Definition;&lt;/P&gt;&lt;P&gt;Drop table&amp;nbsp;IA_VIA_Definition;&lt;/P&gt;&lt;P&gt;i am assuming project name is the key to link bo_project_cost&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 18:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1813741#M66472</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-06-08T18:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: New Field Creation - Join and Synthetic keys in the Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1815780#M66757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for you answer. It still doesn't work. The data loading never ends.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe because in that second IA/VIA table, the conditions to create the IA/VIA field cannot be verified because the "customer name", "project program" and "IA GBU" are not loaded in this same table but in the other one ...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1815780#M66757</guid>
      <dc:creator>abonnery</dc:creator>
      <dc:date>2021-06-17T12:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: New Field Creation - Join and Synthetic keys in the Data Load Editor</title>
      <link>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1816942#M66874</link>
      <description>&lt;P&gt;do you have a sample qvf file to share ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 10:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Field-Creation-Join-and-Synthetic-keys-in-the-Data-Load/m-p/1816942#M66874</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-06-22T10:09:59Z</dc:date>
    </item>
  </channel>
</rss>

