Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dmoreno2605
Contributor III
Contributor III

Days active

Hi everyone! I have the following information:

EMPLOYEEHireDateTermDate
85000416/08/201002/02/2016
85000413/02/2016-
85024330/05/201115/02/2016
85024323/04/201624/05/2017
85032527/06/201121/01/2012
85032508/09/201226/02/2013

 

This is an example of a table where i have hiredate and termdate (employees appear twice because they left and then returned) (the one that has a null value is because he was hired then he left and now is back again)

I want to know who has been active for 90 days or less (for example) but that is not all, i want to know this info base on the day i'm watching (i have a variable that has the date the user wants to see, when the user need to see a different date, he changes it)

 

So, if the user is watching 24/11/2018 then there is not any employee that has been active for 90 days or less

But if i the user watchs 24/04/2016 then there are two employees that have been actives for 90 days, even though one employee already left, in that moment he was active (850243)

Any ideas? 

Thanks!

Labels (1)
1 Solution

Accepted Solutions
dmoreno2605
Contributor III
Contributor III
Author

Solved! It is like this
Field1={"=$(variable)-Field1<=90"}

View solution in original post

1 Reply
dmoreno2605
Contributor III
Contributor III
Author

Solved! It is like this
Field1={"=$(variable)-Field1<=90"}