<?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: Modeling master calendar tables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638125#M233937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything depends on requirements &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is still a good practice to have a separate calendar dimension. &lt;/P&gt;&lt;P&gt;Of course this calendar table has to be filled with all the dates formats in some range, depending requirements (granularity)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The reason is that lately user will maybe want some kind of analysis, but we have in our fact table only dates when some measures occur. (Some day we didn't sell anything -&amp;gt; so measure; record in a fact table doesn't exist -&amp;gt; dimension value doesn't exist... and user may be willing to see that days too in a graph when no sale occur, when he drills down to sale by days per month.) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Maybe this is not the best example, but i think it's understandable.&lt;/P&gt;&lt;P&gt;I think i read some article, where the author wrote down that it's advicable to always have a master calendar table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further opinion is welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 16:01:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-05T16:01:02Z</dc:date>
    <item>
      <title>Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638118#M233930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey to everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have few questions for you. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My today's topic was master calendar table. I've read some articles on this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of different analysis that users do should every date from a fact table be extracted to a standalone "master" calendar table.&lt;BR /&gt;Regarding user requirements then we there (in a calendar dimension) extract monthname / number, quarter, day, week, .. from this date field. &lt;/P&gt;&lt;P&gt;1. If i have right understanding, than if we have 2 or 3 different dates (shipDate, saleDate, orderDate for example) for each fact (sale) in a fact table, then each date should be extracted into its own calendar table? Please correct me if i'm wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In a star schema or transactional DB model should keys be integers. In this examples were keys of type DATE. Is that supposed to be a good practice?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Why would anyone wants to have a date in a fact table? I always thought that date/time goes into separate table, dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please write down your opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jurij Nemanic&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 17:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638118#M233930</guid>
      <dc:creator />
      <dc:date>2014-06-03T17:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638119#M233931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Go through this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 17:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638119#M233931</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-03T17:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638120#M233932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you should have one master calendar per date in the fact table. See &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you also want one "common" date for all dates, that you can use as x-axis in charts: See &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning integer keys: It does not matter what type the key is in QlikView. And since the date is the most atomic entity in a calendar dimension, you &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;should&lt;/EM&gt;&lt;/SPAN&gt; use the date as key. Further - dates &lt;EM style="text-decoration: underline;"&gt;are&lt;/EM&gt; integers, but with formatting information so that they are displayed like they should. See &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 07:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638120#M233932</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-04T07:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638121#M233933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.I think you have to go for cononical date because you have different date fields to make it common make single name of that fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use single master calendar for all dates with common date field name which connect with your date calendar date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Date fields entity is very important for any QV application with common date fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 07:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638121#M233933</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-04T07:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638122#M233934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Here is an example of a master calendar&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6593"&gt;http://community.qlik.com/docs/DOC-6593&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding to use a calendar or not I believe it depends on your requirements / data size etc. Some small applications will not require them and you can keep simple dimension (Date, Month, Year, Etc) within the FACT table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your model has multiple dates then separating the calendar is a good idea rather than multiples but again depends on your performance and complexity.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6502"&gt;http://community.qlik.com/docs/DOC-6502&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion, there's no single correct way to have or use a calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;QlikCentral.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 08:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638122#M233934</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-06-04T08:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638123#M233935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 15:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638123#M233935</guid>
      <dc:creator />
      <dc:date>2014-06-05T15:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638124#M233936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK i'll check that canonical form of date. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 15:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638124#M233936</guid>
      <dc:creator />
      <dc:date>2014-06-05T15:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modeling master calendar tables?</title>
      <link>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638125#M233937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything depends on requirements &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is still a good practice to have a separate calendar dimension. &lt;/P&gt;&lt;P&gt;Of course this calendar table has to be filled with all the dates formats in some range, depending requirements (granularity)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The reason is that lately user will maybe want some kind of analysis, but we have in our fact table only dates when some measures occur. (Some day we didn't sell anything -&amp;gt; so measure; record in a fact table doesn't exist -&amp;gt; dimension value doesn't exist... and user may be willing to see that days too in a graph when no sale occur, when he drills down to sale by days per month.) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Maybe this is not the best example, but i think it's understandable.&lt;/P&gt;&lt;P&gt;I think i read some article, where the author wrote down that it's advicable to always have a master calendar table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further opinion is welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 16:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modeling-master-calendar-tables/m-p/638125#M233937</guid>
      <dc:creator />
      <dc:date>2014-06-05T16:01:02Z</dc:date>
    </item>
  </channel>
</rss>

