Forum Discussion
Date Less than greater than today Measure
Hello
I want to create a measure to get the result as–
If the contract end date is within 60days as of today then return “Contract Expiring Soon – Level 2”
If the contract end date is within 30days as of today then return “Contract Expiring Soon – Level 1”
If the contract end date is less than or equal to “as of today” then return “Contract Expired”
Else
"Contract Valid"
Thanks
Gaurav
| Contract Start Date | Contract End Date |
| 15-Feb-18 | 14-Feb-21 |
| 1-Apr-17 | 1-Apr-21 |
| 28-Jan-14 | 27-Jan-21 |
| 1-Jan-18 | 31-Dec-21 |
| 19-Nov-20 | 21-Nov-21 |
| 4-Aug-19 | 30-Jul-21 |
| 1-Jul-16 | 30-Jun-21 |
| 21-May-20 | 21-May-21 |
| 1-Sep-17 | 1-Sep-20 |
| 15-Jan-20 | 15-Jan-21 |
| 20-Aug-13 | 20-Aug-11 |
| 1-Apr-19 | 1-Apr-20 |
| 1-Apr-19 | 1-Apr-20 |
| 31-Aug-20 | 31-Oct-23 |
I am not sure this is the best way but I think it will work:
=IF(Contracts[Contract End Date]<TODAY(),"Contract Expired",
IF(Contracts[Contract End Date]<TODAY()+30,"Contract Expiring Soon – Level 1",
IF(Contracts[Contract End Date]<TODAY()+60,"Contract Expiring Soon – Level 2",
"Contract Valid")))
1 Reply
- CTozziResolver I
I am not sure this is the best way but I think it will work:
=IF(Contracts[Contract End Date]<TODAY(),"Contract Expired",
IF(Contracts[Contract End Date]<TODAY()+30,"Contract Expiring Soon – Level 1",
IF(Contracts[Contract End Date]<TODAY()+60,"Contract Expiring Soon – Level 2",
"Contract Valid")))