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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
paulista
Contributor III
Contributor III

SUM OF TIME column CALCULATION NOT WORKING

 

I am not able to aggregate the time , over the rows.

 

the aggr i am getting for below is 13.27 but ddefinitely it looks incorrect. the expression used to calculate is 

TIME DIFFERENCE AND AVERAGE.PNG

=IF(IsNull([collateral-valuation-completed]),0,
timestamp(timestamp([collateral-valuation-completed], 'DD/MM/YYYY hh:mm:ss')-timestamp(Min(HDR_TIMESTAMP), 'DD/MM/YYYY hh:mm:ss'),'hh:mm:ss')
)

 

how can i do SUM of this and average in separate expressions.

 

 

 
Labels (2)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

=Interval(

Sum(Aggr(If(IsNull([collateral-valuation-completed]), 0,
[collateral-valuation-completed] - Min(HDR_TIMESTAMP)), HDR_CORR_ID))

, 'hh:mm:ss')

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

=Interval(

Sum(Aggr(If(IsNull([collateral-valuation-completed]), 0,
[collateral-valuation-completed] - Min(HDR_TIMESTAMP)), HDR_CORR_ID))

, 'hh:mm:ss')
paulista
Contributor III
Contributor III
Author

thanks sunny for being helpful always