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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 II
Partner - Master II

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 🙂