<?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: Two Fact tables connecting to same dimension tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336820#M124178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider also this document:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/previewBody/1881-102-1-1865/Best Practices in Data Modeling.pdf"&gt;QlikView Data Modeling best practices&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2012 18:08:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-24T18:08:31Z</dc:date>
    <item>
      <title>Two Fact tables connecting to same dimension tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336816#M124174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to two fact tables 1)Sales 2)orders and around 10 dimension tables.&amp;nbsp;&amp;nbsp; The Primary keys fields in the 10 dimension tables are found in both the fact tables. So i when i reload the 10 dimension tables joins to both the fact tables and form&amp;nbsp; syntectic keys .... how do i overcome these. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attachment &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 20:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336816#M124174</guid>
      <dc:creator />
      <dc:date>2012-03-05T20:44:08Z</dc:date>
    </item>
    <item>
      <title>Two Fact tables connecting to same dimension tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336817#M124175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, &lt;/P&gt;&lt;P&gt;Try This.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact_Sales:&lt;BR /&gt;LOAD * INLINE [SalesID,SalesNum,BillID,ShipID&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Fact_Orders:&lt;BR /&gt;LOAD * INLINE [OrdersID,OrdersNum,BillID,ShipID&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Dimmension_Bill:&lt;BR /&gt;LOAD * INLINE [BillID,BillDate,BillQty&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Dimmension_Ship:&lt;BR /&gt;LOAD * INLINE [F1,ShipID,ShipDate&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salesfact:&lt;BR /&gt;Load AutoNumber(ShipID,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; BillID) As Sales_Bill_ID,&lt;BR /&gt; SalesNum,&lt;BR /&gt; SalesID,&lt;BR /&gt; BillID,&lt;BR /&gt; ShipID Resident Fact_Sales;&lt;BR /&gt; &lt;BR /&gt;OrdersFact:&lt;BR /&gt;Load AutoNumber(ShipID,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; BillID) As Sales_Bill_ID,&lt;BR /&gt; OrdersID,&lt;BR /&gt; OrdersNum&lt;BR /&gt;&amp;nbsp; Resident Fact_Orders;&lt;/P&gt;&lt;P&gt;DROP Tables Fact_Sales,Fact_Orders;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 21:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336817#M124175</guid>
      <dc:creator />
      <dc:date>2012-03-05T21:32:35Z</dc:date>
    </item>
    <item>
      <title>Two Fact tables connecting to same dimension tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336818#M124176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to concatenate the 2 fact tables into a single table with a flag field to indicate which record type they are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 23:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336818#M124176</guid>
      <dc:creator />
      <dc:date>2012-03-05T23:23:16Z</dc:date>
    </item>
    <item>
      <title>Two Fact tables connecting to same dimension tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336819#M124177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I agree with Matt and have had to do this a few times.&amp;nbsp; the problem you have is circular references when the two FACT tables start sharing the same DIM tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use to build one big FACT table with a field identifying whether its a 'Sales' or 'Order' etc then all the other fields brought in as well.&amp;nbsp; it can get hard and a bit messy to maintain.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to go (using Matt's technique) is to keep your 2 FACT tables totally separate from each other and the DIM tables then create a smaller lookup table between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you end up with &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2 Fact tables both connected to the newly created LookupTable (but not connected to your DIM tables)&lt;/LI&gt;&lt;LI&gt;1 lookup table that contains &lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the primary key for each FACT table &lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; an identifier to tell you if its 'Sales' or 'Order'.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all the Dimension keys (ie: dates, order id's etc)&lt;/LI&gt;&lt;LI&gt;Your dimension tables.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this sounds a little complex but once you get it going it will work fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 23:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336819#M124177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-05T23:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Two Fact tables connecting to same dimension tables</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336820#M124178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider also this document:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/previewBody/1881-102-1-1865/Best Practices in Data Modeling.pdf"&gt;QlikView Data Modeling best practices&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 18:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Fact-tables-connecting-to-same-dimension-tables/m-p/336820#M124178</guid>
      <dc:creator />
      <dc:date>2012-04-24T18:08:31Z</dc:date>
    </item>
  </channel>
</rss>

