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: 
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.

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

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
MVP
MVP

May be this:

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


Capture.PNG

tresB
Champion III
Champion III

I would avoid aggr() and use:

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

Corrected

sunny_talwar
MVP
MVP

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
Not applicable
Author

Thank all very much