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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sum (expression)

sum(interval(INTime-VLateTime,'hh:mm'))

it shows error in calculation

13 Replies
er_mohit
Master II
Master II

sum(Interval(time(INTime,'hh:mm')-Time(VLateTime,'hh:mm'),'hh:mm')

Anonymous
Not applicable
Author

no its not working

Anonymous
Not applicable
Author

I suspect there should be aggr within sum:

sum(aggr(interval(...)), something)

Can't tell for sure without seeing an example.

Regards,

Michael

Anonymous
Not applicable
Author

this is sample file pls see that table box has error in calculation.....

er_mohit
Master II
Master II

m using personal edition so can't open your file.......

tell me the exact expression where you get the eror

Anonymous
Not applicable
Author

I don't see error here, it returns some result.  Anyway, see if this is what you expect:

=interval(aggr(sum(INTime-VLateTime),ID), 'hh:mm')

Edit: In fact, I think that your expression is correct, the one without sum.  Actually it depennds on what is the purpose of this calculation

=Interval (INTime-VLateTime,'hh:mm')

Anonymous
Not applicable
Author

i need to calulate the  total late hours for each and every person

er_mohit
Master II
Master II

aggr(Interval(time(OUT_TIME,'hh:mm:ss')-Time(IN_TIME,'hh:mm:ss'),'hh:mm'),person)

change with your fieldname it gives you total hours

Anonymous
Not applicable
Author

if i click the department i need to show the department wise late hours...if i click particular person it show the person late hours...