Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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!!!