<?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: How to combine two tables with multiple reference fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63281#M771615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Example has been edited apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you have a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2018 07:24:11 GMT</pubDate>
    <dc:creator>mrichman</dc:creator>
    <dc:date>2018-06-06T07:24:11Z</dc:date>
    <item>
      <title>How to combine two tables with multiple reference fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63278#M771612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering on how you would solve this issue... We have two tables which we would like to left join but avoid Sync error key.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;We are trying to left join them on "Refnr" but as there are no further rules, the data just explodes. This is because adds the ID on all refnr but we only want data to be joined where applicable. Please see Current Result and Ideal Result. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hopefully you guys can help on what the best approach would be, thanks in advance. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We have two tables with the following information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table 1&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;LOAD * inline [&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Refnr,Size&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;123, S,&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;123, M,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;123, L,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;LOAD * inline [&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Refnr, ID, Size, Inventory&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;123, A, S, 50&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current result when left joining: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Refnr,Size, ID,&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;Inventory &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;123, S, A, 50&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;123, M, A&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;, 50&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;123, L, A&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;, 50&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ideal result after left joining: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Refnr,Size, ID,&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;Inventory &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;123, S, A, 50&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;123, M,&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;123, L,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63278#M771612</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two tables with multiple reference fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63279#M771613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be going fine if Refnr and Size have the exact same field names. Your results are missing a field name. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63279#M771613</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-06-06T07:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two tables with multiple reference fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63280#M771614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your examples are inconsistent. The field list has four fields, but you show values for 5 fields. Where does the value of 43 come from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63280#M771614</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-06-06T07:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two tables with multiple reference fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63281#M771615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Example has been edited apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you have a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63281#M771615</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2018-06-06T07:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two tables with multiple reference fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63282#M771616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Refnr&amp;amp;'#'&amp;amp;Size as KEY;&lt;/P&gt;&lt;P&gt;LOAD * inline [&lt;/P&gt;&lt;P&gt;Refnr,Size&lt;/P&gt;&lt;P&gt;123, S&lt;/P&gt;&lt;P&gt;123, M&lt;/P&gt;&lt;P&gt;123, L&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;left join(Table1)&lt;/P&gt;&lt;P&gt;Load ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inventory,&lt;/P&gt;&lt;P&gt;Refnr&amp;amp;'#'&amp;amp;Size as KEY;&lt;/P&gt;&lt;P&gt;LOAD * inline [&lt;/P&gt;&lt;P&gt;Refnr, ID, Size, Inventory&lt;/P&gt;&lt;P&gt;123, A, S, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63282#M771616</guid>
      <dc:creator>jaumecf23</dc:creator>
      <dc:date>2018-06-06T07:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two tables with multiple reference fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63283#M771617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have&lt;EM&gt; (delimiter is '|'); &lt;/EM&gt;as a qualifier, so the only field being populated is the first. Remove that from both inlines and your script works perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 10:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-tables-with-multiple-reference-fields/m-p/63283#M771617</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-06-06T10:56:27Z</dc:date>
    </item>
  </channel>
</rss>

