<?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 Join on multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148246#M26570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Qlikview. In the past I've developed a BusinessObjects universe and reports. I want to recreate these reports in Qlikview. I've come to the problem that I want to join a table with an other table on more than one field. In BO the join is:&lt;/P&gt;&lt;P&gt;Table1.FreeIntField_01=Table2.artgrp OR Table1.FreeIntField_02=Table2.artgrp OR Table1.FreeIntField_04=Table2.artgrp OR Table1.FreeIntField_05=Table2.artgrp.&lt;/P&gt;&lt;P&gt;I've tried to solve this issue with an concatenate load on Table1 where I rename the fields to artgrp. I'm not sure if this is the right way to solve this issue. Can somebody give me an advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2009 14:49:58 GMT</pubDate>
    <dc:creator>martijn</dc:creator>
    <dc:date>2009-07-02T14:49:58Z</dc:date>
    <item>
      <title>Join on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148246#M26570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Qlikview. In the past I've developed a BusinessObjects universe and reports. I want to recreate these reports in Qlikview. I've come to the problem that I want to join a table with an other table on more than one field. In BO the join is:&lt;/P&gt;&lt;P&gt;Table1.FreeIntField_01=Table2.artgrp OR Table1.FreeIntField_02=Table2.artgrp OR Table1.FreeIntField_04=Table2.artgrp OR Table1.FreeIntField_05=Table2.artgrp.&lt;/P&gt;&lt;P&gt;I've tried to solve this issue with an concatenate load on Table1 where I rename the fields to artgrp. I'm not sure if this is the right way to solve this issue. Can somebody give me an advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 14:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148246#M26570</guid>
      <dc:creator>martijn</dc:creator>
      <dc:date>2009-07-02T14:49:58Z</dc:date>
    </item>
    <item>
      <title>Join on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148247#M26571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are probably a lot of different approaches. Which to take depends on your data and the MEANING of this join. Are fields 01, 02, 04, and 05 basically just an array? Why is 03 skipped?&lt;/P&gt;&lt;P&gt;On the surface at least, it looks similar to something we do here. A user can enter up to five defect codes on a particular item. In the source data, these are just separate columns in one row. In QlikView, we can turn these into multiple rows for a single column on a separate table. The items are linked to additional defect information through this new table.&lt;/P&gt;&lt;P&gt;So for example:&lt;/P&gt;&lt;P&gt;// Pretend these are your source data tables.&lt;BR /&gt;[Item Source Data]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Item, Status, Weight, Color, Defect1, Defect2, Defect3, Defect4, Defect5&lt;BR /&gt;...&lt;BR /&gt;];&lt;BR /&gt;[Defect Source Data]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Defect, Defect Severity, Defect Description&lt;BR /&gt;...&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;// This builds three linked tables from our two unlinked source tables.&lt;BR /&gt;[Item]:&lt;BR /&gt;LOAD Item, Status, Weight, Color&lt;BR /&gt;RESIDENT [Item Source Data]&lt;BR /&gt;;&lt;BR /&gt;[Item Defect]:&lt;BR /&gt;CROSSTABLE (Defect Sequence, Defect) // Crosstable makes one row per defect,&lt;BR /&gt; // keyed by Item and Defect Sequence = 'Defect1' etc.&lt;BR /&gt; // with the actual defect code in field "Defect"&lt;BR /&gt;LOAD Item, Defect1, Defect2, Defect3, Defect4, Defect5&lt;BR /&gt;RESIDENT [Item Source Data]&lt;BR /&gt;;&lt;BR /&gt;[Defect]:&lt;BR /&gt;NOCONCATENATE LOAD *&lt;BR /&gt;RESIDENT [Defect Source Data]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;// Get rid of the source data.&lt;BR /&gt;DROP TABLES&lt;BR /&gt; [Item Source Data]&lt;BR /&gt;,[Defect Source Data]&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 00:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148247#M26571</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-07-03T00:37:21Z</dc:date>
    </item>
    <item>
      <title>Join on multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148248#M26572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!!!. This was the solution I was looking for!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 15:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-on-multiple-fields/m-p/148248#M26572</guid>
      <dc:creator>martijn</dc:creator>
      <dc:date>2009-07-03T15:34:21Z</dc:date>
    </item>
  </channel>
</rss>

