<?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: Multiple fact tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593584#M220000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create another key in DIMPointofDelivery table same as in LCostBuckets table to link the tables. Refer below edited query for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCFacts:&lt;BR /&gt;LOAD 'APC' AS RecordType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AJoinKey AS JoinKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FinancialPeriod,&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDelivery;&lt;BR /&gt;SELECT Top 2000 AJoinKey, FinancialPeriod,&amp;nbsp; LocalPointOfDelivery,1 as RowCounter&lt;BR /&gt;FROM&amp;nbsp; L_AFacts; &lt;/P&gt;&lt;P&gt; &lt;BR /&gt;//////////////////////you do not need to explicitly write concatenate statement, as it would do auto concatenate &lt;BR /&gt;//CONCATENATE &lt;BR /&gt;LOAD 'OPA' AS RecordType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OJoinKey AS JoinKey, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FinancialPeriod, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDelivery;&lt;BR /&gt;SELECT Top 2000 OPAJoinKey, FinancialPeriod,LocalPointOfDelivery&lt;BR /&gt;FROM&amp;nbsp; PLC_OFacts; &lt;/P&gt;&lt;P&gt; &lt;BR /&gt;LCostBuckets:&lt;BR /&gt;Load [Point of Delivery];&lt;BR /&gt;sql execute L_CostBucketsQlikView;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;//Point of Delivery DIM&lt;BR /&gt;DIMPointofDelivery:&lt;BR /&gt;LOAD LocalPointOfDelivery,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDelivery as [Point of Delivery],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDeliveryDescription AS PointofDeliveryDesc;&lt;BR /&gt;SQL SELECT * From L_LocalPointsOfDelivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 08:43:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-20T08:43:45Z</dc:date>
    <item>
      <title>Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593577#M219993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script which includes the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEA: &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; ''AP' as RecordType, A, B, C&lt;/P&gt;&lt;P&gt;Select A, B, C from SQLTABLEAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE LOAD&amp;nbsp; ''AD' as RecordType, A, B, C&lt;/P&gt;&lt;P&gt;Select A, B, C from SQLTABLEAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEB:&lt;/P&gt;&lt;P&gt;LOAD A, B, C, D, F&lt;/P&gt;&lt;P&gt;SQL exec QLIKVIEW_SP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i look at the table view of the scipt, TABLEB has a link to TABLEA as there are fields which are common.&amp;nbsp; However, I do not want this link to the TABLEA fact table as it is causing the results to be returned which i dont want.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in the script I have dim tables for which TABLEA and TABLEB link which is what i do need so that is fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593577#M219993</guid>
      <dc:creator />
      <dc:date>2014-03-19T07:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593578#M219994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TABLEB:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD A, B, C, D, F&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL exec QLIKVIEW_SP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593578#M219994</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-19T07:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593579#M219995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will this then still link to my dimension tables and will it not cause synthetic keys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593579#M219995</guid>
      <dc:creator />
      <dc:date>2014-03-19T07:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593580#M219996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thing, You do not need to do force concatenate between tables coming from SQLTABLEAP and SQLTABLEAD sources, as columns in both the tables are exactly same. It would concatenate by default.&lt;/P&gt;&lt;P&gt;Second thing, If you do not want to link between TABLEA and TABLEB tables, you can qualify one of the table to avoid link or else rename the fields which are having same column names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Smita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593580#M219996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-19T07:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593581#M219997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i rename the fields with same column names how would i then be able to link them to my dim table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you give me an example f the qualify option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 08:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593581#M219997</guid>
      <dc:creator />
      <dc:date>2014-03-19T08:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593582#M219998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post your sample qvw document or script, so it would be easy to find out the solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qualifying table example:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Qualify*;&lt;/P&gt;&lt;P&gt;Unqualify A; //////////////////// if you want to link the tables with column A. If not then, do not write this statement.&lt;/P&gt;&lt;P&gt;TABLEB:&lt;/P&gt;&lt;P&gt;LOAD A, B, C, D, F&lt;/P&gt;&lt;P&gt;SQL exec QLIKVIEW_SP&lt;/P&gt;&lt;P&gt;Unqualify*;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 08:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593582#M219998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-19T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593583#M219999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCFacts:&lt;/P&gt;&lt;P&gt;LOAD 'APC' AS RecordType, AJoinKey AS JoinKey, FinancialPeriod,&amp;nbsp; LocalPointOfDelivery;&lt;/P&gt;&lt;P&gt;SELECT Top 2000 AJoinKey, FinancialPeriod,&amp;nbsp; LocalPointOfDelivery,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1 as RowCounter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; L_AFacts; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE LOAD&lt;/P&gt;&lt;P&gt;'OPA' AS RecordType,OJoinKey AS JoinKey, FinancialPeriod, LocalPointOfDelivery;&lt;/P&gt;&lt;P&gt;SELECT Top 2000 OPAJoinKey, FinancialPeriod,LocalPointOfDelivery&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; PLC_OFacts; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCostBuckets:&lt;/P&gt;&lt;P&gt;Load [Point of Delivery] AS LocalPointOfDelivery;&lt;/P&gt;&lt;P&gt;sql execute L_CostBucketsQlikView;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Point of Delivery DIM&lt;/P&gt;&lt;P&gt;DIMPointofDelivery:&lt;/P&gt;&lt;P&gt;LOAD LocalPointOfDelivery, LocalPointOfDeliveryDescription AS PointofDeliveryDesc;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;From L_LocalPointsOfDelivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the example, what I expect to achieve is LCFacts to be linked to DIMPointof Delivery and LCostBuckets linked to DIMPointofDelivery.&amp;nbsp; I do not want LCFacts and LCostBuckets to be linked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 07:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593583#M219999</guid>
      <dc:creator />
      <dc:date>2014-03-20T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593584#M220000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create another key in DIMPointofDelivery table same as in LCostBuckets table to link the tables. Refer below edited query for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCFacts:&lt;BR /&gt;LOAD 'APC' AS RecordType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AJoinKey AS JoinKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FinancialPeriod,&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDelivery;&lt;BR /&gt;SELECT Top 2000 AJoinKey, FinancialPeriod,&amp;nbsp; LocalPointOfDelivery,1 as RowCounter&lt;BR /&gt;FROM&amp;nbsp; L_AFacts; &lt;/P&gt;&lt;P&gt; &lt;BR /&gt;//////////////////////you do not need to explicitly write concatenate statement, as it would do auto concatenate &lt;BR /&gt;//CONCATENATE &lt;BR /&gt;LOAD 'OPA' AS RecordType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OJoinKey AS JoinKey, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FinancialPeriod, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDelivery;&lt;BR /&gt;SELECT Top 2000 OPAJoinKey, FinancialPeriod,LocalPointOfDelivery&lt;BR /&gt;FROM&amp;nbsp; PLC_OFacts; &lt;/P&gt;&lt;P&gt; &lt;BR /&gt;LCostBuckets:&lt;BR /&gt;Load [Point of Delivery];&lt;BR /&gt;sql execute L_CostBucketsQlikView;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;//Point of Delivery DIM&lt;BR /&gt;DIMPointofDelivery:&lt;BR /&gt;LOAD LocalPointOfDelivery,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDelivery as [Point of Delivery],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPointOfDeliveryDescription AS PointofDeliveryDesc;&lt;BR /&gt;SQL SELECT * From L_LocalPointsOfDelivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 08:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593584#M220000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-20T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593585#M220001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thats great and that seems to have done the trick.&amp;nbsp; So in this example the idea is to have in the dim tables another field which will link to the LCostBuckets? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 08:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593585#M220001</guid>
      <dc:creator />
      <dc:date>2014-03-20T08:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593586#M220002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your requirement mainly, if you want to filter DIMPointofDelivery table with LCostBuckets table and do not want the link between the LCostBuckets and&amp;nbsp; LCFacts table, then it can be done in this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593586#M220002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-20T09:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593587#M220003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so my requirement here is that the DIMPOintofDelivery will be used against both LCostBuckets and LCFacts but i dont want the LCostBuckets and LCFacts to be linked (both the later are fact tables). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593587#M220003</guid>
      <dc:creator />
      <dc:date>2014-03-20T09:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593588#M220004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For multiple facts table, you can go with either concatenation or Link table concept. Above example of DIMPointofDelivery table is like a link table between the fact tables. As per your requirement, it should work fine.&lt;/P&gt;&lt;P&gt;However you can concatenate the fact tables, as it simply append the rows of tables into one without any link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593588#M220004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-20T09:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593589#M220005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the approach i have taken in the example is fine then in that case.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 11:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593589#M220005</guid>
      <dc:creator />
      <dc:date>2014-03-20T11:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593590#M220006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i am finding is when i add that LCostBuckets and reload the results (numbers are different).&amp;nbsp; I would not expect adding this to have an impact on the sheet which is based on the other fact tables which are not linked to LCCostBuckets? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593590#M220006</guid>
      <dc:creator />
      <dc:date>2014-03-20T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593591#M220007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/55458_Untitled.jpg" style="width: 620px; height: 310px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593591#M220007</guid>
      <dc:creator />
      <dc:date>2014-03-20T13:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593592#M220008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have included the table view.&amp;nbsp; You will notice that it is causing a loop when i start to add more fields to the LCostBuckets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593592#M220008</guid>
      <dc:creator />
      <dc:date>2014-03-20T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593593#M220009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to keep number of rows as per your fact table PLCFacts, then you can do Left Keep or Left Join like as below example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLCFacts:&lt;/P&gt;&lt;P&gt;select * from PLCFacts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DimPointofDelivery:&lt;/P&gt;&lt;P&gt;left keep(PLCFacts)&lt;/P&gt;&lt;P&gt;select * from DimPointofDelivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCCostBuckets:&lt;/P&gt;&lt;P&gt;left keep(DimPointofDelivery)&lt;/P&gt;&lt;P&gt;select * from LCCostBuckets;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding circular loop, rename any of those field which is not relevent to your requirement. In your scenario, if you need to still add more fields in LCCostBuckets table, then go with concatenation to main fact table. It would not change your dataset, it would simply append the data in one table and you can avoid synthetic key, circular reference in one go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593593#M220009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-20T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593594#M220010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay i will try that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help on this.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593594#M220010</guid>
      <dc:creator />
      <dc:date>2014-03-20T14:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593595#M220011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have done this&lt;/P&gt;&lt;P&gt;DIMPointofDelivery:&lt;/P&gt;&lt;P&gt;left keep (PLCFacts)&lt;/P&gt;&lt;P&gt;LOAD LocalPointOfDelivery, LocalPointOfDelivery AS LocalPoD, LocalPointOfDeliveryDescription AS PointofDeliveryDesc;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;From PLC_LocalPointsOfDelivery;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLCCostBuckets:&lt;/P&gt;&lt;P&gt;left keep (DIMPointofDelivery)&lt;/P&gt;&lt;P&gt;Load [Point of Delivery] AS LocalPoD, [Site] as LocalSitePLCCost;&lt;/P&gt;&lt;P&gt;sql execute PLC_CostBucketsQlikView;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when i run the script I get a table not found error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593595#M220011</guid>
      <dc:creator />
      <dc:date>2014-03-21T09:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fact tables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593596#M220012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From this query DIMPointodDelivery table is getting join to PLCFact table, because of which table is not available to join further with any other table. Try to join DIMPointofDelivery and PLCCostBuckets first and then join with PLCFactTable. Something like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIMPointofDelivery_temp:&lt;/P&gt;&lt;P&gt;LOAD LocalPointOfDelivery, LocalPointOfDelivery AS LocalPoD, LocalPointOfDeliveryDescription AS PointofDeliveryDesc;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;From PLC_LocalPointsOfDelivery;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;PLCCostBuckets:&lt;/P&gt;&lt;P&gt;left keep (DIMPointofDelivery_temp)&lt;/P&gt;&lt;P&gt;Load [Point of Delivery] AS LocalPoD, [Site] as LocalSitePLCCost;&lt;/P&gt;&lt;P&gt;sql execute PLC_CostBucketsQlikView;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIMPointofDelivery:&lt;BR /&gt;left keep (PLCFacts)&lt;BR /&gt;LOAD LocalPointOfDelivery,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalPoD, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PointofDeliveryDesc&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocalSitePLCCost&lt;BR /&gt;Resident DIMPointofDelivery_temp;&lt;/P&gt;&lt;P&gt;Drop Table DIMPointofDelivery_temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work.&lt;/P&gt;&lt;P&gt;Smita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-fact-tables/m-p/593596#M220012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-21T09:51:38Z</dc:date>
    </item>
  </channel>
</rss>

