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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Histogram with variable intervals

Hello,

I have a table of records, each having a time (for "time elapsed in hours") field. I want to create a histogram over the number of records with the bins being

0 <= time < 4h

4h <= time < 1d

1d <= time < 7d

7d <= time < 30d

... and so on. I looked at the Class function, but since the time intervals are different for each bin I think it cannot be used here. I also would really like to have the bins labeled like shown above, e.g. '7d' instead of '168h' for better readability.

Is there any way to do this?

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

look at the intervalmatch() function

View solution in original post

3 Replies
Not applicable
Author

look at the intervalmatch() function

Not applicable
Author

Not applicable
Author

Thanks so much, this is just was I was looking for!