Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time Average

Hi All,

Please find the attached QVW.

Employee 'hr head' has net duration of 10:20 and 'hr payrolladmin' has 05:35.

If both the employees are selected it should show the average of net duration. But curently it shows 'No Data'

Regards,

Keerthi KS

1 Solution

Accepted Solutions
sunny_talwar

May be this?

Just so I don't look like an idiot, I think I should fix this

Avg(Interval(OutTime-InTime,'hh:mm'))

Interval(Avg(OutTime-InTime),'hh:mm')

View solution in original post

6 Replies
sunny_talwar

May be this?

Just so I don't look like an idiot, I think I should fix this

Avg(Interval(OutTime-InTime,'hh:mm'))

Interval(Avg(OutTime-InTime),'hh:mm')

swuehl
MVP
MVP

Always use aggregation functions in your expressions:

=Interval(Avg(OutTime-InTime),'hh:mm')

Edit:

You also need to apply aggregation functions to the bar offset and other expressions used. I am unsure how you want to display the reference lines etc. in case of multiple employees selected.

sunny_talwar

Damn man, you always manage to find my mistake

swuehl
MVP
MVP

Maybe using an average bar offset?

Not applicable
Author

Reference lines is only for Core working hours. It should not be changed as per the requirements.

Not applicable
Author

Ha Ha Thanks Sunny