Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Edrean
Contributor
Contributor

Regular time interval as dimension irrespective of time data

Let's say I have data like this:

TimeStamp
2018-12-04 07:12:00
2018-12-04 07:14:00
2018-12-04 07:16:00
2018-12-04 07:17:00
2018-12-04 07:19:00
2018-12-04 07:22:00
2018-12-04 07:55:00
2018-12-04 07:56:00
2018-12-04 09:07:00
2018-12-04 09:11:00

 

What I would like to do is to graph the total number of records in 15 minute intervals. However, the twist is that I would also like the intervals with no records to show a count of 0. In other words, if there are no records in a certain time interval, a data point should still be graphed, but with a 0 value.

The result in this example should then be something like :

DateIntervalCount
2018-12-0407:00 - 07:152
2018-12-0407:15 - 07:304
2018-12-0407:30 - 07:450
2018-12-0407:45 - 08:002
2018-12-0408:00 - 08:150
2018-12-0408:15 - 08:300
2018-12-0408:30 - 08:450
2018-12-0408:45 - 09:000
2018-12-0409:00 - 09:152

 

I have searched for an answer to this, but have only come up with solutions that work well when there are records, but they will exclude the time intervals where there are no records.

I hope you clever people can help me with a solution for this.

Thanks!

1 Solution

Accepted Solutions
sunny_talwar

I think in order to get this, you would probably need The Master Calendar and The Master Time Table. This will help you generate your missing date and time ranges.

View solution in original post

1 Reply
sunny_talwar

I think in order to get this, you would probably need The Master Calendar and The Master Time Table. This will help you generate your missing date and time ranges.