<?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 Facts with Multiple Dates- Best practice? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254271#M624233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its a cut down one, there are a whole load of value fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously the dimensions in the table could be easily pulled and I could use a link table to join on the job_id and then individual calendars, which is where my mind was going &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146470_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 13:22:48 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2016-12-13T13:22:48Z</dc:date>
    <item>
      <title>Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254267#M624228</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;&lt;/P&gt;&lt;P&gt;I've been working with a large fact (22m) with a number (7) of dates.&lt;/P&gt;&lt;P&gt;The canonical date structure has been working brilliantly for me, however I now need to add a second fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fact needs to be linked to the original fact, and also needs to be linked to the master calendar in its own right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A picture speaks a thousand words so below is my current DM. Missing from the picture is the fact that %job_id = JobEntryID so the two FACTS can be linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works OK for showing a summary level for a date i.e. I can pick a date (in this case the last month) and get my job info and my timesheet info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what I can't do is select say a regional director and see the timesheet values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking about it a little more, I also need to make sure that I don't limit one way or the other, so for example a job might have its 7 dates within April but some work is done in May. If I was looking at my May report, I wouldn't expect the job to show up in the counters but I would expect my timsheet detail to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to work this new fact into the existing canonical date structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing I can't join the tables as %job_id is the unique ID in the jobs_fact, but this is a one to many with the timesheet fact, but also sometimes a one to none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I could scrap this method and build multiple calendars and link to a floating master but that means re-working all my expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on the best way to approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="146469" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146469_Capture.PNG" style="height: 329px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254267#M624228</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-13T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254268#M624230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I am guessing I can't join the tables as %job_id is the unique ID in the jobs_fact, but this is a one to many with the timesheet fact, but also sometimes a one to none.&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not necessarily a problem. As long as it's not an n-to-m relationship you should be able to join the two tables. Just don't make it a left, right or inner join so as not to lose any data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254268#M624230</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-13T13:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254269#M624231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So a straighforward outer join to return both full datasets &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I just thinking about it in too 'SQLy' terms, somehow I am imagining huge duplications of my job fact...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weirdly in 6 years I've very rarely joined facts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254269#M624231</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-13T13:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254270#M624232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What makes the jobs_fact table in fact table? I can't see all its fields, but what I do see doesn't look much like facts to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254270#M624232</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-13T13:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254271#M624233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its a cut down one, there are a whole load of value fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously the dimensions in the table could be easily pulled and I could use a link table to join on the job_id and then individual calendars, which is where my mind was going &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146470_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254271#M624233</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-13T13:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254272#M624234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, in that case you could concatenate all the fact bits to the timesheet_fact table (and perhaps rename that table) and keep the other fields in a jobs dimension table. That way you won't get funny numbers when you sum a jobs fact which would happen if you joined the tables instead of concatenating them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254272#M624234</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-13T13:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254273#M624235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK that is what I imagined would happen if I joined in that way so at least my logic was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes sense actually and my brain just didn't quite make that leap as I was fixated on the dates... I like it, I will experiment thanks &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254273#M624235</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-13T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Facts with Multiple Dates- Best practice?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254274#M624236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As always now I am down the rabbithole it appears there is a n-m possibility so back to the drawing board on this one as I'll need to link at a higher level&lt;/P&gt;&lt;P&gt;However the concat would have been the correct example so I will mark it such&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Facts-with-Multiple-Dates-Best-practice/m-p/1254274#M624236</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-13T14:01:59Z</dc:date>
    </item>
  </channel>
</rss>

