Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display only hours not minutes

Hi

In a graph I want to display only the values per hour not by minute (as DATUMTIJD) has an inteval per minute

So how should this expression looks?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

If DATUMTIJD is a timestamp you could use hour(DATUMTIJD) to get the hour of the timestamp. Or maybe you need to 'truncate' the minutes. In that case use floor(DATUMTIJD, 1/24) to round down or ceil(DATUMTIJD, 1/24) to round up.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

If DATUMTIJD is a timestamp you could use hour(DATUMTIJD) to get the hour of the timestamp. Or maybe you need to 'truncate' the minutes. In that case use floor(DATUMTIJD, 1/24) to round down or ceil(DATUMTIJD, 1/24) to round up.


talk is cheap, supply exceeds demand
Not applicable
Author

works fine thanks a lot!!!