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: 
peterderrington
Creator II
Creator II

Handling negative time in average calculations

Hi, 

I've got a quick question regarding how QlikView handles negative values for time.

I've got a straight table and if i ask it to simply average the time there is a late or early finish (early finishes display a negative time whilst late finishes show a positive time) it shows the time as 23:38:38 where as its actually -00:21:21

It calculate the median average fine (displaying -00:06:00).

In the Number formatting section I picked 'Time' for the average whilst for the median i just left it as Expression Default, however if i pick Expression Default for average then it shows it as a -014830247 which is the decimal version of the correct -00:21:21

Can anyone help?

1 Solution

Accepted Solutions
sunny_talwar

Not entirely sure I understand, but seems like you need Interval() function instead of Time()

View solution in original post

2 Replies
sunny_talwar

Not entirely sure I understand, but seems like you need Interval() function instead of Time()

peterderrington
Creator II
Creator II
Author

Perfect - that's exactly what it was - Thank you!