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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calculate time difference in expression

Hi guys,

I have 2 time variables and I want to calculate average difference between them in pivot table.

Please see below.

Capture.JPG.jpg

How can I get it?

Thanks,

Labels (1)
14 Replies
Anonymous
Not applicable
Author

it shows wrong results.

In first table I have count for each surveyID by month, time difference should be for these moths

Regards,

javier_florian
Creator III
Creator III

Hi Vladimir,

As you have survey ID and respondent ID, you must calculate an average by respondent like this:

=Interval#(Avg(comeDateTime)-Avg(submitDateTime))

Or, call in pivot table your respondent ID to avoid use an average function.

- Javier Florian

Anonymous
Not applicable
Author

Thanks.

100 points

preminqlik
Specialist II
Specialist II

hey ,there ,

now its coming correct....:)

find attachment

Anonymous
Not applicable
Author

Javier_Florian  helped with idea.

Please see above his expression