<?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 Two relations between two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-relations-between-two-tables/m-p/208227#M63665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep two Tables, One for Start_Dep, and one for End_Dep.&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;if the Department has just the Dep_Key and Name, Do a join and bring Name into the Fact as Start_Dep_Name and End_Dep_Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 11:53:09 GMT</pubDate>
    <dc:creator>vidyut</dc:creator>
    <dc:date>2010-04-09T11:53:09Z</dc:date>
    <item>
      <title>Two relations between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-relations-between-two-tables/m-p/208226#M63664</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 have the table &lt;I&gt;Department&lt;/I&gt; and a &lt;I&gt;Fact&lt;/I&gt; table. The &lt;I&gt;Fact&lt;/I&gt; table has two foreign keys END_DEP and START_DEP to the &lt;I&gt;Department's&lt;/I&gt; primary key.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1364_sourceID:1364" /&gt;&lt;/P&gt;&lt;P&gt;To map them in QlikView I created two more columns of the DEP_KEY in the &lt;I&gt;Department&lt;/I&gt; dimension, which have the same name as the ones in the &lt;I&gt;Fact&lt;/I&gt; table. In QlikView I have:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SQL SELECT "DEP_KEY",&lt;BR /&gt; "DEP_KEY" AS "START_DEP",&lt;BR /&gt; "DEP_KEY" AS "END_DEP",&lt;BR /&gt; "DEP_NAME"&lt;BR /&gt;FROM NEWKIRK.DEPARTMENT;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;SQL SELECT DAYS,&lt;BR /&gt; "END_DEP",&lt;BR /&gt; "START_DEP",&lt;BR /&gt; STATUS&lt;BR /&gt;FROM NEWKIRK.FACT;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1365_sourceID:1365" /&gt;&lt;/P&gt;&lt;P&gt;It creates synthetic keys, but I don't know if that is really what I want. I want two different relations from the &lt;I&gt;Fact&lt;/I&gt; to the &lt;I&gt;Department&lt;/I&gt; table.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 09:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-relations-between-two-tables/m-p/208226#M63664</guid>
      <dc:creator />
      <dc:date>2010-04-09T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Two relations between two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-relations-between-two-tables/m-p/208227#M63665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep two Tables, One for Start_Dep, and one for End_Dep.&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;if the Department has just the Dep_Key and Name, Do a join and bring Name into the Fact as Start_Dep_Name and End_Dep_Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 11:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-relations-between-two-tables/m-p/208227#M63665</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2010-04-09T11:53:09Z</dc:date>
    </item>
  </channel>
</rss>

