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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

summation of date interval.

Hello Team,

I have two dates date1 and date2, I am finding difference between the two dates using interval function in an expression of straight table

Here I want the sum of whole expression.

my expression is

if(condition,interval(sum(date2-date1),'hh:mm','00:00')

which giving me difference in hours and minutes along with this I am able to find sum of the expression but in few cases where condition won't satisfy my expression will take '00:00' , in this cases the total sum of expression is not displaying.

Can someone suggest me the solution for this.

Thanks!!!

11 Replies
sasiparupudi1
Master III
Master III

Try may be

sum(if(condition,interval(date2-date1,'s'),0))

Not applicable
Author

Thanks all for your support ,

It got resolved by changing "Expression Total' to "Sum Of Rows" option in expression tab of straight table.