<?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: Master calendar - qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-calendar-qlikview/m-p/1513726#M440683</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;MasterCalendar:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TempDate AS Date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Week(TempDate) AS Week,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Year(TempDate) AS Year,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Month(TempDate) AS Month,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Day(TempDate) AS Day,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Weekday(TempDate) AS WeekDay,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date(monthstart(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inyeartodate(TempDate, maxdate, 0) * -1 AS CurYTDFlag,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inyeartodate(TempDate, maxdate, -1) * -1 AS LastYTDFlag &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//=== Generate a temp table of dates === &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;date(mindate + IterNo()) AS TempDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,maxdate // Used in InYearToDate() above, but not kept &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WHILE mindate + IterNo() &amp;lt;= maxdate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//=== Get min/max dates from fact table ===/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;min(&lt;STRONG&gt;Date&lt;/STRONG&gt;)-1 as mindate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;max(&lt;STRONG&gt;Date&lt;/STRONG&gt;) as maxdate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT &lt;STRONG&gt;Facts&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change "Date" to the name of your date field and "Facts" to the name of your already loaded data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 15:55:41 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-11-28T15:55:41Z</dc:date>
    <item>
      <title>Master calendar - qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-qlikview/m-p/1513618#M440682</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I have date column in my data file like&lt;BR /&gt;&lt;BR /&gt;02/12/2017&lt;BR /&gt;&lt;BR /&gt;05/12/2017&lt;BR /&gt;&lt;BR /&gt;07/12/2017&lt;BR /&gt;&lt;BR /&gt;10/12/2017&lt;BR /&gt;&lt;BR /&gt;10/12/2017&lt;BR /&gt;&lt;BR /&gt;10/12/2017&lt;BR /&gt;&lt;BR /&gt;12/12/2017......&lt;BR /&gt;&lt;BR /&gt;I want to show calendar view in my dashboard could you please help me out how can I achieve this. Did I need to do some code else any other way .I have to get like this calendar view. Please help me asap. Thanks!&lt;BR /&gt;&lt;BR /&gt;Capture.PNG</description>
      <pubDate>Wed, 28 Nov 2018 13:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-qlikview/m-p/1513618#M440682</guid>
      <dc:creator>Pujitha</dc:creator>
      <dc:date>2018-11-28T13:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Master calendar - qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Master-calendar-qlikview/m-p/1513726#M440683</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;MasterCalendar:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TempDate AS Date,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Week(TempDate) AS Week,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Year(TempDate) AS Year,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Month(TempDate) AS Month,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Day(TempDate) AS Day,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Weekday(TempDate) AS WeekDay,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Date(monthstart(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inyeartodate(TempDate, maxdate, 0) * -1 AS CurYTDFlag,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;inyeartodate(TempDate, maxdate, -1) * -1 AS LastYTDFlag &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//=== Generate a temp table of dates === &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;date(mindate + IterNo()) AS TempDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,maxdate // Used in InYearToDate() above, but not kept &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WHILE mindate + IterNo() &amp;lt;= maxdate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//=== Get min/max dates from fact table ===/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;min(&lt;STRONG&gt;Date&lt;/STRONG&gt;)-1 as mindate,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;max(&lt;STRONG&gt;Date&lt;/STRONG&gt;) as maxdate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT &lt;STRONG&gt;Facts&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change "Date" to the name of your date field and "Facts" to the name of your already loaded data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 15:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-calendar-qlikview/m-p/1513726#M440683</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-11-28T15:55:41Z</dc:date>
    </item>
  </channel>
</rss>

