Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Minus Datetime

I have a trouble with minusing 2 datetime field. Can anyone help me to solve this problem, please? i will attached my file into this thread.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

I would avoid aggr() and use:

=Interval(Sum(ClosedDate-CreatedDate , CaseCode), 'D hh:mm:ss')

Corrected

View solution in original post

5 Replies
sunny_talwar

May be this:

=Interval(Sum(Aggr(ClosedDate-CreatedDate, CaseCode)), 'D hh:mm:ss')


Capture.PNG

tresesco
MVP
MVP

I would avoid aggr() and use:

=Interval(Sum(ClosedDate-CreatedDate , CaseCode), 'D hh:mm:ss')

Corrected

sunny_talwar

I guess you are right . Just a minor correction though, you forgot to remove the aggregated dimension from my expression:

=Interval(Sum(ClosedDate-CreatedDate), 'D hh:mm:ss')

HirisH_V7
Master
Master

Hi,

May be like this,

Minus Time.PNG

Three expressions,

Interval(ClosedDate-CreatedDate,'DD')

Interval(ClosedDate-CreatedDate,'h')

Interval(ClosedDate-CreatedDate,'mm')

Hope this helps,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Thank all very much