<?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/Canonical Calendar - Problem with data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723583#M723836</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95024"&gt;@basav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;If you notice the timestamp contains timezone&amp;nbsp; "UTC". Your expression&amp;nbsp;&lt;SPAN&gt;does not address that. As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/73950"&gt;@Lily&lt;/a&gt;&amp;nbsp;&amp;nbsp;shared the QVW you can do a binary load and use it to play around.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Binary [test calendar.qvw];
Drop Tables DateBridge, Calendar;
New_Ticket:
NoConcatenate
Load * Resident Ticket;
Drop Table Ticket;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 30 Jun 2020 14:42:25 GMT</pubDate>
    <dc:creator>vamsee</dc:creator>
    <dc:date>2020-06-30T14:42:25Z</dc:date>
    <item>
      <title>Master Calendar/Canonical Calendar - Problem with data</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1722991#M723833</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to create a canonical calendar for my qlikview project using sample script form forum community but it's seems not working fine. The data displayed is not same as my uploaded data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data not display in column field 'ClosedDate' and 'CalendarDate'. Supposedly, the data in 'Closed date' field must be exactly same as 'Closed on' field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="QV calendar.PNG" style="width: 689px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36469iA95CD9FEC877F2B3/image-dimensions/689x260?v=v2" width="689" height="260" role="button" title="QV calendar.PNG" alt="QV calendar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1722991#M723833</guid>
      <dc:creator>Lily</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar/Canonical Calendar - Problem with data</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723294#M723834</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is not with your calendar script but with the way you are creating ClosedDate &amp;amp; CreatedDate.&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date(Floor(Timestamp#(Left([Created On],len([Created On])-3), 'MM/DD/YYYY hh:mm TT')))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, FYI below is a better calendar script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Fact:
NoConcatenate
LOAD 
			[Ticket Number], 
			Category, 
			[Closed On], 
			[Created On], 
			Date(Floor(Timestamp#(Left([Created On],len([Created On])-3), 'MM/DD/YYYY hh:mm TT'))) 	as Created_Date,
			Date(Floor(Timestamp#(Left([Closed On],len([Closed On])-3), 'MM/DD/YYYY hh:mm TT'))) 	as Closed_Date,
			[Due On], 
			Priority, 
			Status, 
			[Time Spent], 
			[Time To Resolve], 
			Impact, 
			Type, 
			Department,  
			Source, 
			[Problem Resolution], 
			Severity
Resident Ticket;
     
Drop Table Ticket;

DateBridge:
Load 
	[Ticket Number], 
	Created_Date as CalendarDate, 
	'Created' as DateType
Resident Fact;
     
Load 
	[Ticket Number],  
	Closed_Date as CalendarDate, 
	'Closed' as DateType
Resident Fact
;


Calendar_Created_Date:
NoConcatenate
LOAD
			Date(Calendar_Date, 'MM/DD/YYYY')		as CalendarDate,
			Year(Calendar_Date) 					as [Calendar Year],
			'Q' &amp;amp; Ceil(Month(Calendar_Date) / 3)	as [Calendar Quarter],    
			Month(Calendar_Date) 					as [Calendar Month],
			Day(Calendar_Date) 						as [Calendar Day],
			Week(Calendar_Date) 					as [Calendar Week];
			
Load 		Date(MinDate + IterNo() -1 ) 			as Calendar_Date
While 		
	(MinDate + IterNo() - 1) &amp;lt;= Num(MaxDate);
LOAD
			min(FieldValue('CalendarDate', recno()))-1 	as MinDate,
			max(FieldValue('CalendarDate', recno())) 	as MaxDate
AUTOGENERATE FieldValueCount('CalendarDate');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vamsee_0-1593469101800.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36530i78DE3274B8193D1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vamsee_0-1593469101800.png" alt="vamsee_0-1593469101800.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 22:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723294#M723834</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-29T22:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar/Canonical Calendar - Problem with data</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723366#M723835</link>
      <description>&lt;P&gt;Hi Lily,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the [Closed On] column contains timestamp. So can you try using the below expression in the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date(Floor(Timestamp#([Closed On],'MM/DD/YYYY hh:mm:ss TT')),'MM/DD/YYYY') as [Closed date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would have tested it my self but&amp;nbsp; I do not the the excel file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Basav&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 06:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723366#M723835</guid>
      <dc:creator>basav</dc:creator>
      <dc:date>2020-06-30T06:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar/Canonical Calendar - Problem with data</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723583#M723836</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95024"&gt;@basav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;If you notice the timestamp contains timezone&amp;nbsp; "UTC". Your expression&amp;nbsp;&lt;SPAN&gt;does not address that. As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/73950"&gt;@Lily&lt;/a&gt;&amp;nbsp;&amp;nbsp;shared the QVW you can do a binary load and use it to play around.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Binary [test calendar.qvw];
Drop Tables DateBridge, Calendar;
New_Ticket:
NoConcatenate
Load * Resident Ticket;
Drop Table Ticket;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1723583#M723836</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-30T14:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar/Canonical Calendar - Problem with data</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1724279#M723837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/50135"&gt;@vamsee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm glad with your solution. Now I understand why my calendar is not working. You're right, it is because of my Created and Closed Date script is not in the correct format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thanks again for the calendar script given.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope, this script will help others too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1724279#M723837</guid>
      <dc:creator>Lily</dc:creator>
      <dc:date>2020-07-02T03:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar/Canonical Calendar - Problem with data</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1724280#M723838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95024"&gt;@basav&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for effort to help me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calendar-Canonical-Calendar-Problem-with-data/m-p/1724280#M723838</guid>
      <dc:creator>Lily</dc:creator>
      <dc:date>2020-07-02T03:32:01Z</dc:date>
    </item>
  </channel>
</rss>

