<?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 not concatenating. Synth key with all fields. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827760#M68149</link>
    <description>&lt;P&gt;Thank you for the responses,&lt;/P&gt;&lt;P&gt;yes, finally I forced the concatenation with "concatenate" and everything is working, but the thing is that I can't understand whay is Qlik Sense not concatenating automatically.&lt;/P&gt;&lt;P&gt;Here are the script loading sections for those tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DQ_FACTS_QVD_INIT:
Load * 
FROM [lib://DQs_QVDs/DQ_FACTS_DRV.qvd] (qvd)
where Num(EXEC_DATE_SQL_QVD)&amp;lt;$(fecha_ejecucion_num)
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sentence returns an empty DQ_FACTS_QVD_INIT table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DQ_FACTS_INIT:    
    Load *, 
   	    If(ERROR_TYPE_QVD='Creation', ID_DQ_COUNTS_aux &amp;amp; '-' &amp;amp; 'Yes', ID_DQ_COUNTS_aux &amp;amp; '-' &amp;amp; 'All') AS ID_DQ_COUNTS_QVD;        
    Load *,  
   	TYPE_ID &amp;amp; '-' &amp;amp; Text(DATE(EXEC_DATE_SQL,'YYYYMMDD')) AS ID_DQ_COUNTS_aux,	if(date(CREATION_DATE,'DD/MM/YYYY')=Date($(fecha_analizada_num),'DD/MM/YYYY'),'Creation','Modification') as ERROR_TYPE_QVD
   	Resident DQ_DRIVER;
       	Drop Fields ID_DQ_COUNTS_aux from DQ_FACTS_INIT;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More or less those are the sections where tables are loaded, for simplicity I have not included all fields.&lt;/P&gt;&lt;P&gt;Salutes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2021 14:23:27 GMT</pubDate>
    <dc:creator>Morgoz</dc:creator>
    <dc:date>2021-08-10T14:23:27Z</dc:date>
    <item>
      <title>Qlik Sense not concatenating. Synth key with all fields.</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827666#M68126</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have loaded a table from a QVD file (which by now is empty) and then I have created another table in the script using preceding loads, with exactly the same field names as the one from the QVD.&lt;/P&gt;&lt;P&gt;I expected Qlik Sense to automatically concatenate both tables, but it has created a huge synth key with all the fields of both tables, so in the model view there are no "own" fields in any table and all fields in the synth key:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Morgoz_0-1628587372946.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59917iA9742372898026EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Morgoz_0-1628587372946.png" alt="Morgoz_0-1628587372946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am i missing?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 09:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827666#M68126</guid>
      <dc:creator>Morgoz</dc:creator>
      <dc:date>2021-08-10T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense not concatenating. Synth key with all fields.</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827687#M68136</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135493"&gt;@Morgoz&lt;/a&gt;&amp;nbsp; can you share the load script ?&lt;/P&gt;&lt;P&gt;and if you use concatenate ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 10:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827687#M68136</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2021-08-10T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense not concatenating. Synth key with all fields.</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827697#M68140</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp; mentioned, use concatenate().&amp;nbsp; Sometimes it's handy to short-hand in a loop, letting it auto-concatenate, but it will make you and colleague's jobs harder to maintain/troubleshoot when you have to remember what tables are auto-concatenating when it's easy as concatenate(&amp;lt;tablename&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 10:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827697#M68140</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-10T10:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense not concatenating. Synth key with all fields.</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827760#M68149</link>
      <description>&lt;P&gt;Thank you for the responses,&lt;/P&gt;&lt;P&gt;yes, finally I forced the concatenation with "concatenate" and everything is working, but the thing is that I can't understand whay is Qlik Sense not concatenating automatically.&lt;/P&gt;&lt;P&gt;Here are the script loading sections for those tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DQ_FACTS_QVD_INIT:
Load * 
FROM [lib://DQs_QVDs/DQ_FACTS_DRV.qvd] (qvd)
where Num(EXEC_DATE_SQL_QVD)&amp;lt;$(fecha_ejecucion_num)
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sentence returns an empty DQ_FACTS_QVD_INIT table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DQ_FACTS_INIT:    
    Load *, 
   	    If(ERROR_TYPE_QVD='Creation', ID_DQ_COUNTS_aux &amp;amp; '-' &amp;amp; 'Yes', ID_DQ_COUNTS_aux &amp;amp; '-' &amp;amp; 'All') AS ID_DQ_COUNTS_QVD;        
    Load *,  
   	TYPE_ID &amp;amp; '-' &amp;amp; Text(DATE(EXEC_DATE_SQL,'YYYYMMDD')) AS ID_DQ_COUNTS_aux,	if(date(CREATION_DATE,'DD/MM/YYYY')=Date($(fecha_analizada_num),'DD/MM/YYYY'),'Creation','Modification') as ERROR_TYPE_QVD
   	Resident DQ_DRIVER;
       	Drop Fields ID_DQ_COUNTS_aux from DQ_FACTS_INIT;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More or less those are the sections where tables are loaded, for simplicity I have not included all fields.&lt;/P&gt;&lt;P&gt;Salutes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 14:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827760#M68149</guid>
      <dc:creator>Morgoz</dc:creator>
      <dc:date>2021-08-10T14:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense not concatenating. Synth key with all fields.</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827837#M68157</link>
      <description>&lt;P&gt;It looks like in the 2nd load DQ_FACTS_INIT you have an extra column being loaded "ID_DQ_COUNTS_aux" that you drop after.&amp;nbsp; But the auto-concatenate would happen when the table is created in memory.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 21:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-not-concatenating-Synth-key-with-all-fields/m-p/1827837#M68157</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-10T21:32:22Z</dc:date>
    </item>
  </channel>
</rss>

