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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Average hour of the day plot

Hi

I have an expression to show the average time of day an event occurred :

=time(avg([Updated Time]),'hh:mm')

What I would like to show is a line chart with the Monday to Sunday along the x axis and show the average Updated Time as a line across the days.  Is this possibe?

Thanks,

Phil

6 Replies
Anil_Babu_Samineni

May be create Dimension as Days and use same formula as expression

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
prees959
Creator II
Creator II
Author

Hi Thanks for your reply,

I have tried

avg_hours1.PNG

which now gives this :

avg_hours2.PNG

Can you help?

Thanks

Phil

dinuwanbr
Creator III
Creator III

Hi Phil,

Try to use this

=time(aggr(avg(Updated_Time),DayOfWeek),'hh:ss')

else Can you upload a sample here.

Rgds,

Tharindu

prees959
Creator II
Creator II
Author

Hi,

is this the Expression ?

dinuwanbr
Creator III
Creator III

=time(aggr(avg(Updated_Time),DayOfWeek),'hh:ss')

sunny_talwar

Use DayOfWeek as dimension

and =time(avg([Updated Time]),'hh:mm') as expression