<?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 with multiple dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267569#M867255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, actually a workaround would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All dates fields in the linked_table, so it would be a temporary big table, but no choice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each combination of dates fields should receive an ID in the linked_table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date1 / Date 2 / Period1 / ID&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / XY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 1&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / XZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, create a Brdige for the canonical calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; / CalendarType&amp;nbsp;&amp;nbsp; / Date&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Date1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / A&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Date2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / B&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; / Period1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Several rows from X to Y&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, link your master calendar to ths bridge and in every measure you create in interface, select on what kind of calendar type you want the analysis to be one :&amp;nbsp;&amp;nbsp; sum({&amp;lt;CalendarTpe={'Date1'}&amp;gt;} RandomField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And at the end, you should delete all dates fields from the link_table and do a Load distinct in order to delete duplicates in this table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 13:31:32 GMT</pubDate>
    <dc:creator>thomaslg_wq</dc:creator>
    <dc:date>2016-12-16T13:31:32Z</dc:date>
    <item>
      <title>multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267556#M867242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am kind of new to Qlikview so any help here would be appreciated.&lt;/P&gt;&lt;P&gt;I have a scenario when one of my fact tables have start and end date and others have just single column dates. I need to connect all to a master calendar. I have managed to use interval match to connect one of the fact tables to the master calendar but struggling on how to link the rest of them without creating any loop. below is the current DM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SI_v3.png" class="jive-image image-1" height="451" src="https://community.qlik.com/legacyfs/online/146748_SI_v3.png" style="height: 451.35px; width: 527px;" width="527" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see above effective_start_date and effective_end_date in SourceData_Accont have been matched to master calendar. I also need to link EFFECTIVE_DATE in SourceData_Transaction , AuA_EFFECTIVE_DATE in SourceData_AuA and EraliestOpen/ LatestClose in SourceData_Account to master calendar as well. I have tried creating a link table but it creates a loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion in improving the data model would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&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/multiple-fact-tables-with-multiple-dates/m-p/1267556#M867242</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267557#M867243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help? &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Marty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267557#M867243</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2016-12-15T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267558#M867244</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;You may need to have only one fact table, and get all dates fields in this table.&lt;/P&gt;&lt;P&gt;I don't think you really need to use a link table in your case.&lt;/P&gt;&lt;P&gt;Use some join and create that only one fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, when you'll get every dates in the same fact table, use canonical calendar - &lt;SPAN style="font-size: 13.3333px;"&gt;Really great post&lt;/SPAN&gt; : &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267558#M867244</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-15T16:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267559#M867245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'd take DateID as key to link Master with other date tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trim(date(YourDateFieldhere,'YYYYMMDD'))as [DateID],&lt;/P&gt;&lt;DIV&gt;Use this in your Master Calendar and Source.&lt;/DIV&gt;&lt;DIV&gt;For Master Calendar your Date Field might be Temp Date and in Source Table it can be Either Start Date or End Date.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;It would be easy to solve if you can provide the sample data? But for Dates I'd use DateID as key.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267559#M867245</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-15T16:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267560#M867246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this example can help you. You do not need to have all the information linked together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267560#M867246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-15T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267561#M867247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Neda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to create Master Calendar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/48693"&gt;Creating A Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3858"&gt;Master Calendar Generation Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 17:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267561#M867247</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2016-12-15T17:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267562#M867248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas, I have tried to merge to one fact table but the problem is the table sizes as one can have 10million records and I might end up having more than 2billion if I join them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267562#M867248</guid>
      <dc:creator />
      <dc:date>2016-12-16T09:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267563#M867249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marty, I have had a look at Canonical calendar. I have two issues to get it working for me:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;start and end date are interval dates and can not be treated like separate dates e.g. for each account I need to pick the record where start and end dates falls within the selected date range. this is why I have used intervalmatch to link it to master calendar.&lt;/LI&gt;&lt;LI&gt;I don't have a table with'fine granularity' to be able to link to canonical calendar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;any idea on how to cover the above with canonical date would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267563#M867249</guid>
      <dc:creator />
      <dc:date>2016-12-16T09:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267564#M867250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arvind, as mentioned above start and end date can not be treated like separate entities &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;e.g. for each account I need to pick the record where start and end dates falls within the selected date range. this is why I have used intervalmatch to link it to master calendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267564#M867250</guid>
      <dc:creator />
      <dc:date>2016-12-16T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267565#M867251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcio, I need to plot all my charts against a common date. that's why I need to link all to a master calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267565#M867251</guid>
      <dc:creator />
      <dc:date>2016-12-16T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267566#M867252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ishfaque, I have already created a master calendar and you can see it in the data model. the issue is linking all dates to the master calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267566#M867252</guid>
      <dc:creator />
      <dc:date>2016-12-16T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267567#M867253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neda,&lt;/P&gt;&lt;P&gt;My concern would be that if you could find a way to link everything, you would make selection very difficult in the UI, possibly misleading the user -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest creating a unique key to sourcedata_account , and using autogenerate (or for loop) to create a table with individual rows for each date in the start-end range, linked to sourcedata_account with that key. Key could be ACCOUNTENTITYID &amp;amp; effective_start_date &amp;amp; effective_end_date...&lt;/P&gt;&lt;P&gt;(drop or rename the start &amp;amp; end dates to avoid an unwanted join).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 12:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267567#M867253</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2016-12-16T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267568#M867254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You'd just need to link one date field to Master Date (Effective Date) &amp;lt;&amp;lt;&amp;lt; Calendar dates from Master Table to your Start or End Date and the selection will reflect on your UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had same Issue.&lt;/P&gt;&lt;P&gt;I had Start Date, End Date.&lt;/P&gt;&lt;P&gt;Here are few lines from my script..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SourceTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Dates(MyDateField) as Dates&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;where&amp;nbsp; not "&lt;SPAN style="font-size: 13.3333px;"&gt;MyDateField&lt;/SPAN&gt;"='';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;trim(date(TempDate,'YYYY-MM-DD'))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;as Dates,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TempCalendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempDatesTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load*&lt;/P&gt;&lt;P&gt;Resident MasterCalendar&lt;/P&gt;&lt;P&gt;WHERE not Exists(Dates);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just linked one field from Source Table to Master Table. You don;t have to link all Dates fields to Master. It can be only one. In this case &lt;STRONG&gt;Dates will be link field b/w source and Master.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267568#M867254</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-16T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267569#M867255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, actually a workaround would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All dates fields in the linked_table, so it would be a temporary big table, but no choice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each combination of dates fields should receive an ID in the linked_table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date1 / Date 2 / Period1 / ID&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / XY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 1&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / XZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, create a Brdige for the canonical calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; / CalendarType&amp;nbsp;&amp;nbsp; / Date&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Date1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / A&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Date2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / B&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; / Period1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Several rows from X to Y&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, link your master calendar to ths bridge and in every measure you create in interface, select on what kind of calendar type you want the analysis to be one :&amp;nbsp;&amp;nbsp; sum({&amp;lt;CalendarTpe={'Date1'}&amp;gt;} RandomField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And at the end, you should delete all dates fields from the link_table and do a Load distinct in order to delete duplicates in this table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267569#M867255</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-16T13:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267570#M867256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neda,&lt;/P&gt;&lt;P&gt;This will help you : &lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267570#M867256</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2016-12-16T13:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267571#M867257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the way to handle multiple fact tables in QlikView with common dimensions is to concatenate them and separate the data with a "DataType" field. This is so that you dont get circular references that will ruin your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;load *, 'FileA' as FactType from fileA.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Fact)&lt;/P&gt;&lt;P&gt;load *, 'FileB' as FactType from FileB.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Date problem; I would use the single date as both the from date and the to date. Then the intervalmatch will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Fact:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load *, 'FileA' as FactType from fileA.qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate(Fact)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load *,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE &lt;/SPAN&gt; as [Effective Start Date], &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE &lt;/SPAN&gt; as [Effective End Date], 'FileB' as FactType from FileB.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267571#M867257</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2016-12-16T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267572#M867258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All,&lt;/P&gt;&lt;P&gt;I have tried to create a link table with all dates using following script but get RAM error. It seems LEFT JOIN causing the issue as BridgeTable_1 returns 38million and joining it to 300,000 records in BridgeTable cause memory error. any help on how to improve the script would be really appreciated:&lt;/P&gt;&lt;P&gt;[tmp]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; %ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Account' as DateType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(FLOOR(effective_start_date)) AS date_from,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(FLOOR(effective_end_date)) AS date_to&lt;/P&gt;&lt;P&gt;RESIDENT SourceData_Account;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (tmp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; TRANSACTION_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Transaction' as DateType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(FLOOR(EFFECTIVE_DATE)) AS date_from,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(FLOOR(EFFECTIVE_DATE)) AS date_to&lt;/P&gt;&lt;P&gt;RESIDENT SourceData_Transaction;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (tmp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; AUA_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'AuA' as DateType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(FLOOR(AuA_EFFECTIVE_DATE)) AS date_from,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE(FLOOR(AuA_EFFECTIVE_DATE)) AS date_to&lt;/P&gt;&lt;P&gt;RESIDENT SourceData_AuA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[BridgeTable]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD DISTINCT * RESIDENT tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;//QUALIFY *;&lt;/P&gt;&lt;P&gt;LEFT JOIN (BridgeTable)&lt;/P&gt;&lt;P&gt;INTERVALMATCH (Period)&lt;/P&gt;&lt;P&gt;LOAD date_from, date_to RESIDENT BridgeTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 15:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267572#M867258</guid>
      <dc:creator />
      <dc:date>2016-12-16T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267573#M867259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// assuming a start from your initial picture data model without master calendar and bridge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// First join&lt;/P&gt;&lt;P&gt;left join(LinkTable)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ACCOUNT_ENTITY_ID,&lt;/P&gt;&lt;P&gt;effective_start_date,&lt;/P&gt;&lt;P&gt;effective_end_date&lt;/P&gt;&lt;P&gt;resident SourceData_Account;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop field effective_start_date from SourceData_Account;&lt;/P&gt;&lt;P&gt;Drop field effective_end_date from SourceData_Account;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;LOAD min(effective_start_date) as MinDate,&lt;/P&gt;&lt;P&gt;max(effective_end_date) as MaxDate&lt;/P&gt;&lt;P&gt;resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMin=peek('MinDate',0,'MinMax');&lt;/P&gt;&lt;P&gt;let vMax=peek('MaxDate',0,'MinMax');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempDates:&lt;/P&gt;&lt;P&gt;LOAD $(vMin)+iterno() as Effective_Date1&lt;/P&gt;&lt;P&gt;autogenerate 1 while $(vMin)+iterno()&amp;lt;$(vMax);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join(LinkTable)&lt;/P&gt;&lt;P&gt;intervalmatch(Effective_Date1)&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;effective_start_date,&lt;/P&gt;&lt;P&gt;effective_end_date&lt;/P&gt;&lt;P&gt;resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempDates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop fields effective_start_date, effective_end_date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Second join&lt;/P&gt;&lt;P&gt;left join(LinkTable)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Account_Instrument_ID,&lt;/P&gt;&lt;P&gt;AuA_EFFECTIVE_DATE as EffectiveDate2&lt;/P&gt;&lt;P&gt;resident SourceData_AuA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop field AuA_EFFECTIVE_DATE from SourceData_AuA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Third join&lt;/P&gt;&lt;P&gt;left join(LinkTable)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Account_Instrument_ID,&lt;/P&gt;&lt;P&gt;EFFECTIVE_DATE as EffectiveDate3&lt;/P&gt;&lt;P&gt;resident SourceData_Transaction;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop field EFFECTIVE_DATE from SourceData_Transaction;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Creating Ids&lt;/P&gt;&lt;P&gt;NewLinkTable:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;autonumber(Effective_Date1&amp;amp;'/'&amp;amp;Effective_Date2&amp;amp;'/'&amp;amp;Effective_Date3) as %ID&lt;/P&gt;&lt;P&gt;resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Creating Bridge for canonical calendar&lt;/P&gt;&lt;P&gt;Bridge:&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;%ID,&lt;/P&gt;&lt;P&gt;Effective_Date1 as Date,&lt;/P&gt;&lt;P&gt;'Type1' as Calendar_Type&lt;/P&gt;&lt;P&gt;resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Bridge)&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;%ID,&lt;/P&gt;&lt;P&gt;Effective_Date2 as Date,&lt;/P&gt;&lt;P&gt;'Type2' as Calendar_Type&lt;/P&gt;&lt;P&gt;resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Bridge)&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;%ID,&lt;/P&gt;&lt;P&gt;Effective_Date3 as Date,&lt;/P&gt;&lt;P&gt;'Type3' as Calendar_Type&lt;/P&gt;&lt;P&gt;resident LinkTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 15:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267573#M867259</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-16T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267574#M867260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simen,&lt;/P&gt;&lt;P&gt;do you mean rename dates from FileB to match date names in FileA? in this case:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate(Fact)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load *,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE &lt;/SPAN&gt; as effective_start_date, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE &lt;/SPAN&gt; as effective_end_date, 'FileB' as FactType from FileB.qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Neda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 19:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267574#M867260</guid>
      <dc:creator />
      <dc:date>2016-12-16T19:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: multiple fact tables with multiple dates</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267575#M867261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Managed to solve this by concatenating all fact tables and creating a bridge table for all dates using Martyn solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 12:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-fact-tables-with-multiple-dates/m-p/1267575#M867261</guid>
      <dc:creator />
      <dc:date>2016-12-19T12:04:15Z</dc:date>
    </item>
  </channel>
</rss>

