Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
luisdarwinqlik
Contributor II
Contributor II

How get Master Calendar and Master Time in a binnacle

Hi Experts,

My doubt raisen when I was make a chart with hours.

I have a binnacle when I place all my activities day after day as follow:

Id Task
Task
Start Date
Start Time
End Date
End Time

In script I got to merge [Start Date] & [Start Time] as Start, and [End Date] & [End Time] as End.

The new fields have format: 'YYYY-MM-DD hh:mm:ss tt'

Basically that's my layout, I'm looking to measure end to end my time by Year, Month, Day, Hour, Minute...

First I would like to make a Master Calendar to include my Start and End in a same dimension, and next that I need a similar table to link the time and make charts, for instance a bar chart where I can show from start to end of my binnacle by hour o ranges of time.

ID TaskTaskStart DateStart TimeEnd DateEnd Time
RzLs_0000000001Help Desk2018121114:44:002018121114:44:07
RzLs_0000000002Duties MLW2018121114:44:072018121114:44:14
RzLs_0000000003Analyse2018121114:44:142018121114:44:19
RzLs_0000000004Program2018121114:44:192018121215:24:03
RzLs_0000000005Mistake last process2018121215:24:032018121215:36:46
RzLs_0000000006Meal Break2018121215:36:462018121215:44:43
RzLs_0000000007Analyse2018121215:44:432018121215:44:56
RzLs_0000000008Execute Tests2018121215:44:562018121309:03:02
RzLs_0000000009Execute Tests2018121309:03:022018121309:04:09
RzLs_0000000010Execute Tests2018121309:04:092018121309:05:04
RzLs_0000000011Analyse2018121309:05:042018121309:07:16
RzLs_0000000012Execute Tests2018121309:07:162018121310:31:50
RzLs_0000000013Training2018121310:31:502018121310:55:24
RzLs_0000000014Comfort Break2018121310:55:242018121311:34:54
RzLs_0000000015Meeting2018121311:34:542018121314:33:33
RzLs_0000000016Training2018121314:33:332018121314:33:45
RzLs_0000000017Meal Break2018121314:33:452018121314:39:06
RzLs_0000000018Meeting2018121314:39:062018121314:48:08
RzLs_0000000019Meeting2018121314:48:082018121314:48:49
RzLs_0000000020Meal Break2018121314:48:492018121314:49:14
RzLs_0000000021Duties MLW2018121314:49:142018121315:56:31
RzLs_0000000022Program2018121315:56:312018121316:30:31
RzLs_0000000023Reporting2018121407:38:212018121409:29:39
RzLs_0000000024Advising2018121409:29:392018121409:29:51
RzLs_0000000025Analyse2018121409:29:512018121409:33:55
RzLs_0000000026Mistake last process2018121409:33:552018121411:35:17
RzLs_0000000027Design2018121411:35:172018121412:18:52
RzLs_0000000028Meal Break2018121412:18:522018121413:08:39
RzLs_0000000029Advising2018121413:08:392018121413:09:50
RzLs_0000000030Advising2018121413:09:502018121413:10:16
RzLs_0000000031Call2018121413:10:162018121413:12:01
RzLs_0000000032Mail2018121413:12:012018121413:13:23
RzLs_0000000033Advising2018121413:13:232018121413:14:00
RzLs_0000000034Meeting2018121413:14:002018121414:14:09
RzLs_0000000035Execute Tests2018121414:14:092018121414:14:35
RzLs_0000000036Help Desk2018121414:14:352018121414:14:56
RzLs_0000000037WebEx Meeting2018121414:14:562018121414:52:24
RzLs_0000000038Program2018121414:52:242018121415:13:26
RzLs_0000000039Work Session2018121415:13:262018121707:40:08

I hope be helped with that, I have a several days trying to find a solve, but sadly I couldn't.

Regards

Luis

Labels (3)
1 Reply
Gysbert_Wassenaar

Perhaps like this:

LinkTable:
LOAD DISTINCT
[ID Task],
Date(Floor(DateTime)) as Date,
Hour(DateTime) as Hour
; LOAD [ID Task], FLoor([Start] + (IterNo() - 1)/24,1/24) as DateTime RESIDENT TaskDataTable WHILE [Start] + (IterNo() - 1)/24 <= [End] ; MasterCalendar: LOAD DISTINCT Date, Year(Date) as Year, Month(Date) as Month, ...other fields derived from Date... RESIDENT LinkTable ;

The above doesn't create a separate Master Time table. The Hour field is in the LinkTable table. If you want you can create an extra Master Time table using that field.


talk is cheap, supply exceeds demand