<?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: QV not merging data based on unique key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031279#M348163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering and willing to help me.&lt;/P&gt;&lt;P&gt;I read all stuff off course on joins keep and concatenate.&lt;/P&gt;&lt;P&gt;I think it is not possible to add data with concatenate and user an inner join.&lt;/P&gt;&lt;P&gt;I need to join the data two avoid double rows. The key item is retournr.&lt;/P&gt;&lt;P&gt;Thinking out loud first do an inner join and then do the concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 17:59:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-27T17:59:06Z</dc:date>
    <item>
      <title>QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031277#M348161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear reader,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have generated a data set to help me enlarge my QV experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I don't understand is why all first rows are empty. I expect that QV merges the records in to unique rows based on the unique column retournr. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122885_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input Excel is attached.&lt;/P&gt;&lt;P&gt;At the end of the table I have a similar issue. I expect every record to have a filled in cell Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QV model is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/122886_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The load script is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BRS:&lt;/P&gt;&lt;P&gt;LOAD filiaalnr_plain, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filiaalnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retournr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invoerdatum, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is incidenteel$)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//where filiaalnr = 'w19';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(BRS) // inidenteel artikelen&lt;/P&gt;&lt;P&gt;LOAD retournr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; artikelnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aantal&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is incidenteel_art$)&lt;/P&gt;&lt;P&gt;where exists(retournr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(BRS) // inidenteel bon&lt;/P&gt;&lt;P&gt;LOAD retournr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; artikelnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bonnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aantal&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is incidenteel_bon$)&lt;/P&gt;&lt;P&gt;where exists(retournr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(BRS) // defecten&lt;/P&gt;&lt;P&gt;LOAD 'w' &amp;amp; filiaalnr as filiaalnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retournr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invoerdatum, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aantal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; art_nr as artikelnr&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is defecten$)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//where filiaalnr = 'w19';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(BRS) //mass&lt;/P&gt;&lt;P&gt;LOAD 'w' &amp;amp; filiaalnr as filiaalnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retournr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invoerdatum, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aantal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; art_nr as artikelnr&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is mass$)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//where filiaalnr = 'w19';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;org_fil:&lt;/P&gt;&lt;P&gt;LOAD 'w' &amp;amp; filiaalnr_plain as filiaalnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type as filiaaltype&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is org_stam$)&lt;/P&gt;&lt;P&gt;where exists ('w' &amp;amp; filiaalnr_plain);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;org_art:&lt;/P&gt;&lt;P&gt;LOAD art_nr as artikelnr, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; omschrijving&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is org_art$)&lt;/P&gt;&lt;P&gt;where exists (art_nr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me I need to deliver the report by the end of this week &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031277#M348161</guid>
      <dc:creator />
      <dc:date>2016-04-27T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031278#M348162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/166044"&gt;Understanding Join, Keep and Concatenate&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031278#M348162</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-27T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031279#M348163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering and willing to help me.&lt;/P&gt;&lt;P&gt;I read all stuff off course on joins keep and concatenate.&lt;/P&gt;&lt;P&gt;I think it is not possible to add data with concatenate and user an inner join.&lt;/P&gt;&lt;P&gt;I need to join the data two avoid double rows. The key item is retournr.&lt;/P&gt;&lt;P&gt;Thinking out loud first do an inner join and then do the concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 17:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031279#M348163</guid>
      <dc:creator />
      <dc:date>2016-04-27T17:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031280#M348164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;When you concatenate a table containing 5 rows with another containing 6 rows you will have 11 rows as a result.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;May be want you want to do is an outer join instead of a concatenate. I would suggest that you read the document proposed by swuehl because it is very clear and has examples.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If your first table has fields A and B and the second table has fields B and C. Then field C will be null for all rows concatenated from first Table and Field A will be null for all rows concatenated from second table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 19:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031280#M348164</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2016-04-27T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031281#M348165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe concatenate and then do another resident load with a GROUP BY and aggregations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 21:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031281#M348165</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-27T21:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031282#M348166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A tablebox is very suitable to check the data if they are like you expect them but you need mandatory an unique record-identifier - could be easily created within the script with recno() and/or rowno() - and quite helpful is also to add a 'FromTableXYZ' as Source to identify definitely what your tables contain and from where these data come from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 05:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031282#M348166</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-28T05:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031283#M348167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the formatting of the unique key in both temp tables please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 05:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031283#M348167</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2016-04-28T05:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: QV not merging data based on unique key</title>
      <link>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031284#M348168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See here the changes in the load script I made&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1027848"&gt;Data modeling joining data got 3 rows and expect 1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which improves the resulted tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 06:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-not-merging-data-based-on-unique-key/m-p/1031284#M348168</guid>
      <dc:creator />
      <dc:date>2016-04-28T06:12:15Z</dc:date>
    </item>
  </channel>
</rss>

