Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hours in axes

Hello,

I am writing to you because I would like to display ours in axes of a chart.

I get data from a database to the format "dd/mm/yyyy hh:mm:ss" and I convert it in the script in hours with :

Time(HM_ACTIONREAL) as [Action Time]

But in my chart, the total of time is good, but in axes I don't have a time format.

qlik-hours.png

Do you know how can I do this ?

Thanks lot

2 Replies
Gysbert_Wassenaar

The Time function can only return a value between 0:00:00 and 23:59:59. If in your chart you sum hours then you should use the Interval function: interval(sum([Action Time]),'hh:mm:ss'). And you can change the number format on the Number tab. Check to option to override the expression default and choose the format you need and optionally change the format string as well.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

Thanks for your response.

Can I afford to show you my results ?

I change the definition here :

qlik-hours1.png

So I get this format :

qlik-hours2.png

I go to number tab and choose "Hour"

qlik-hours3.png

But finally I get this :

qlik-hours4.png

Do you think it's a problem concerning my data ?

Thank you again.