<?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: My Master Calendar Does Not Work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737984#M675110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; I used Date(FactDate) when loading the data in the fact table. Will this do the same? Or this will only change the format?&amp;nbsp; Thank you&amp;nbsp; PC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 07:00:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-09T07:00:29Z</dc:date>
    <item>
      <title>My Master Calendar Does Not Work</title>
      <link>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737982#M675108</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;I created a master calendar out of my fact table using the following script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Min(FactDate) AS MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(FactDate) AS MaxDate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RESIDENT FactTable;&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;Let vMinDate = Num(Peek('MinDate',0,'MinMax'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = Num(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;TempCal:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vMinDate) + RowNo() - 1) AS FactDate&lt;/P&gt;&lt;P&gt;AutoGenerate&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMaxDate) - $(vMinDate) +1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; FactDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(FactDate) AS [Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(FactDate) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ceil(Month(FactDate)/6) &amp;amp; 'H' &amp;amp; Year(FactDate) AS [Half_Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ceil(Month(FactDate)/6) &amp;amp; 'H' AS [Half Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(FactDate)/3) &amp;amp; '-' &amp;amp; Year(FactDate) AS [Quarter_Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(FactDate)/3) AS Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(FactDate) &amp;amp; '-' &amp;amp; Year(FactDate) AS [Month_Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(FactDate) AS Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(FactDate) &amp;amp; '-' &amp;amp; Year(FactDate) AS [Week_Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(FactDate) AS Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MonthStart(FactDate) AS [Month Start]&lt;/P&gt;&lt;P&gt;RESIDENT TempCal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TempCal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script executed successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I can see an association between my Fact table and the Calendar table in the table viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I go to the front and start using the the calendar as a dimension, it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no data available when I make a selection in the calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only see values when the dimension is null.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61995_Capture.PNG.png" style="width: 620px; height: 233px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same method before and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 06:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737982#M675108</guid>
      <dc:creator />
      <dc:date>2014-07-09T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: My Master Calendar Does Not Work</title>
      <link>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737983#M675109</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;Your calendar script looks fine, but it seems that the FactDate values in your fact table are not aligning with the FactDate values in your calendar. You can confirm this by c&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;reating a list box for FactDate and checking the values. I expect that you will see "duplicate" values (ie values that look the same but are not actually the same).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I suspect is that your fact table FactDates have a time component in them, while your calendar FactDates do not. When you load your fact table, use floor() to remove the time component:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FactTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(FactDate)) As FactDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 06:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737983#M675109</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-07-09T06:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: My Master Calendar Does Not Work</title>
      <link>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737984#M675110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; I used Date(FactDate) when loading the data in the fact table. Will this do the same? Or this will only change the format?&amp;nbsp; Thank you&amp;nbsp; PC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 07:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737984#M675110</guid>
      <dc:creator />
      <dc:date>2014-07-09T07:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: My Master Calendar Does Not Work</title>
      <link>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737985#M675111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt; Hi&amp;nbsp; You are right. I try your method and it works.&amp;nbsp; I gues Date() will only change the formate then.&amp;nbsp; Thank you very much.&amp;nbsp; Kind regards,&amp;nbsp; PC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 07:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737985#M675111</guid>
      <dc:creator />
      <dc:date>2014-07-09T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: My Master Calendar Does Not Work</title>
      <link>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737986#M675112</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;Hi BAIKANG,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;just look for this,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MinMax:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Min(FactDate) AS MinDate,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Max(FactDate) AS MaxDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;RESIDENT FactTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;here you are using aggr functions at script level so you need to use Group by YourUniqueField.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MinMax:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourUniqueField,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Min(FactDate) AS MinDate,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Max(FactDate) AS MaxDate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;RESIDENT FactTable group by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourUniqueField&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 07:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Master-Calendar-Does-Not-Work/m-p/737986#M675112</guid>
      <dc:creator />
      <dc:date>2014-07-09T07:13:07Z</dc:date>
    </item>
  </channel>
</rss>

