Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time master calendar

Hello,

I have been reading and following this great blog by HIC, but now he confused me even more.

Can someone help me with the script?

http://community.qlik.com/blogs/qlikviewdesignblog/2013/07/23/the-master-time-table?et=blogs.comment...

I dont get the last part he says.

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

TempTime:

Load

Time(RecNo() /24/60 as TimeNum

AutoGenerate 24*60;

Time:

Load

Time(TimeNum,'hh:mm') as Time,

Hour(TimeNum) as Hour,

Minute(TimeNum) as Minute

Resident TempTime; Drop table TempTime;

That worked for me.

View solution in original post

3 Replies
Not applicable
Author

Attached there is an example:

The top chart shows data by TimeCalendar

The buttom chart shows by loading distinct values - and this one is correct!

Why do i get null values in my TimeCalendar?

New version uploaded

Not applicable
Author

TempTime:

Load

Time(RecNo() /24/60 as TimeNum

AutoGenerate 24*60;

Time:

Load

Time(TimeNum,'hh:mm') as Time,

Hour(TimeNum) as Hour,

Minute(TimeNum) as Minute

Resident TempTime; Drop table TempTime;

That worked for me.

Not applicable
Author

I think you key Time is wrong:

Try with this:

TempTime:

Load

(RowNo()-1 / 24 / 60 as TimeNum

AutoGenerate 24*60;

Time:

Load

Floor(TimeNum, 0.0000001) as Time,

Hour(TimeNum) as Hour

Resident TempTime; Drop table TempTime;

and the make a floor in Hej table.

Time(floor(CreateDate,0.0000001) as Time,