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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How does one form bins for a time dimension?

Hi there i am new to the forum and have learnt a lot through this forum. i hope that someone would be able to assist me with the problem i am facing.

i have time stamped data and would like to bin these times into intervals (eg. 00:00-01:00 , 01:00-02:00 and so on) in order to create a historgram for sales over a 24 hour period

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

Not applicable
Author

Thanks Sunny. I was able to determine bin the time intervals using

=Dual(

      Interval(SubField(Class([Time], 1/24),'<= x <',1),'hh:mm')&' - '&

      Interval(SubField(Class([Time], 1/24),'<= x <',2),'hh:mm'),

      Class([Time], 1/24)

     )

sunny_talwar
MVP
MVP

Super