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: 
TS08
Contributor II
Contributor II

Ageing in Days with multiple conditions

Hi,

Could anyone please help me calculate the days while comparing two dates with some additional conditions. 

e.g. date difference b/w RFS Date and Timestamp if status is not equals to "Commissioned" or "Termination"  and RFS date is not Blank

I was trying below formula but it's not working: -

=If([Status] -='Commissioned' and 'Termination' and Len(Trim([RFS Date ]))>0,
([RFS Date ]-[Timestamp]),'No CRF Date')

Labels (3)
1 Solution

Accepted Solutions
TS08
Contributor II
Contributor II
Author

Thanks a lot, this is really helpful 🙂

View solution in original post

2 Replies
BrunPierre
Partner - Master
Partner - Master

As below

IF(Not Match(Status,'Commissioned','Termination') and Len(Trim([RFS Date]))>0,Interval(RFS Date]-[Timestamp],'dd')) as  Days

TS08
Contributor II
Contributor II
Author

Thanks a lot, this is really helpful 🙂