<?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 Create Master Calendar from date column - Sense App in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80099#M1364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table (generic_message_log) from where i want to take the column Date to create a Master Calendar of all dates in the column. Both tables are below. Question is that, when i'm adding fields as Master Items, like Year, Month,Week to create the Period (as per the Tutorials) the selection doesn't get updated. How can i get both tables linked on the Date column? (they are linked in the Data Model Viewer on Date field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;SPAN style="font-size: 13.3333px;"&gt;generic_message_log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[generic_message_log]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;[file_id] AS [m_file_id],&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Date([run_time],'DD-MMM-YYYY hh:mm:ss') AS [Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[filename] AS [m_filename],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[run_time] AS [m_run_time];&lt;/P&gt;&lt;P&gt;SELECT "file_id", &lt;/P&gt;&lt;P&gt;"filename",&lt;/P&gt;&lt;P&gt;"run_time";&lt;/P&gt;&lt;P&gt;FROM "ftp_notifier"."generic_message_log";&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;SPAN style="font-size: 13.3333px;"&gt;//Master Calendar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = NUM(PEEK('Date',0,'generic_message_log'));&lt;/P&gt;&lt;P&gt;LET varMaxDate = NUM(PEEK('Date',-1,'generic_message_log'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE($(varMinDate) + ROWNO() -1) AS TempDate&lt;/P&gt;&lt;P&gt;AUTOGENERATE $(varMaxDate) - $(varMinDate) +1;&lt;/P&gt;&lt;P&gt;// Create the Master Calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE(TempDate, 'DD-MMM-YYYY hh:mm:ss') AS Date,&lt;/P&gt;&lt;P&gt;WEEK(TempDate) AS Week,&lt;/P&gt;&lt;P&gt;YEAR(TempDate) AS Year,&lt;/P&gt;&lt;P&gt;MONTH(TempDate) AS Month,&lt;/P&gt;&lt;P&gt;DAY(TempDate) AS Day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE(MONTHSTART(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; CEIL(MONTH(TempDate)/3)&amp;amp;'-'&amp;amp;YEAR(TempDate) AS QuarterYear,&lt;/P&gt;&lt;P&gt;'W' &amp;amp; WEEK(TempDate)&amp;amp;'-'&amp;amp;YEAR(TempDate) AS WeekYear,&lt;/P&gt;&lt;P&gt;WEEKDAY(TempDate) AS WeekDay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT TempCalendar&lt;/P&gt;&lt;P&gt;Order BY TempDate ASC;&lt;/P&gt;&lt;P&gt;DROP FIELD TempDate;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 15:12:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-23T15:12:22Z</dc:date>
    <item>
      <title>Create Master Calendar from date column - Sense App</title>
      <link>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80099#M1364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table (generic_message_log) from where i want to take the column Date to create a Master Calendar of all dates in the column. Both tables are below. Question is that, when i'm adding fields as Master Items, like Year, Month,Week to create the Period (as per the Tutorials) the selection doesn't get updated. How can i get both tables linked on the Date column? (they are linked in the Data Model Viewer on Date field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;SPAN style="font-size: 13.3333px;"&gt;generic_message_log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[generic_message_log]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;[file_id] AS [m_file_id],&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Date([run_time],'DD-MMM-YYYY hh:mm:ss') AS [Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[filename] AS [m_filename],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[run_time] AS [m_run_time];&lt;/P&gt;&lt;P&gt;SELECT "file_id", &lt;/P&gt;&lt;P&gt;"filename",&lt;/P&gt;&lt;P&gt;"run_time";&lt;/P&gt;&lt;P&gt;FROM "ftp_notifier"."generic_message_log";&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;SPAN style="font-size: 13.3333px;"&gt;//Master Calendar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = NUM(PEEK('Date',0,'generic_message_log'));&lt;/P&gt;&lt;P&gt;LET varMaxDate = NUM(PEEK('Date',-1,'generic_message_log'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE($(varMinDate) + ROWNO() -1) AS TempDate&lt;/P&gt;&lt;P&gt;AUTOGENERATE $(varMaxDate) - $(varMinDate) +1;&lt;/P&gt;&lt;P&gt;// Create the Master Calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE(TempDate, 'DD-MMM-YYYY hh:mm:ss') AS Date,&lt;/P&gt;&lt;P&gt;WEEK(TempDate) AS Week,&lt;/P&gt;&lt;P&gt;YEAR(TempDate) AS Year,&lt;/P&gt;&lt;P&gt;MONTH(TempDate) AS Month,&lt;/P&gt;&lt;P&gt;DAY(TempDate) AS Day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE(MONTHSTART(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; CEIL(MONTH(TempDate)/3)&amp;amp;'-'&amp;amp;YEAR(TempDate) AS QuarterYear,&lt;/P&gt;&lt;P&gt;'W' &amp;amp; WEEK(TempDate)&amp;amp;'-'&amp;amp;YEAR(TempDate) AS WeekYear,&lt;/P&gt;&lt;P&gt;WEEKDAY(TempDate) AS WeekDay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT TempCalendar&lt;/P&gt;&lt;P&gt;Order BY TempDate ASC;&lt;/P&gt;&lt;P&gt;DROP FIELD TempDate;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 15:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80099#M1364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Master Calendar from date column - Sense App</title>
      <link>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80100#M1365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you remove time part from your date and then check. I am suspecting having numeric part like123456.2345 (with decimals), might be not allowing exact match while making association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TempDate), 'DD-MMM-YYYY') AS Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80100#M1365</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-23T21:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Master Calendar from date column - Sense App</title>
      <link>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80101#M1366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you, but didn't work. And i need the timestamp available in the console table&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80101#M1366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T11:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Master Calendar from date column - Sense App</title>
      <link>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80102#M1367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;I think you need to change the one on your "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;generic_message_log" table for this line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(floor([run_time]),'DD-MMM-YYYY') AS [Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You don't need to use "floor" in the one in the Calendar table as it doesn't have 'time'.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest you have a look into this useful PDF, specially Tip 4 (page 5):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Create-Master-Calendar-from-date-column-Sense-App/m-p/80102#M1367</guid>
      <dc:creator>jaygarcia</dc:creator>
      <dc:date>2018-02-27T16:22:39Z</dc:date>
    </item>
  </channel>
</rss>

