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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Master calendar

Hi,

I am looking to add to the standard Master Calendar code, additional granularity of 1 - 24 hours in a day.

Not so sure how to code it.

Thanks

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps you should create a Master Time table instead: The Master Time Table‌. Otherwise you'll increase the size of your Master Calendar table by a factor of 24.


talk is cheap, supply exceeds demand
maxgro
MVP
MVP

d: load rowno() as id, date(makedate(2015) + rowno()-1) as d AutoGenerate 365;

left join (d) load (rowno()-1)/24 as h AutoGenerate 24;

d2: load Timestamp(d + h) as dh Resident d;

DROP Table d;