Forum Discussion
Third Result Option Based on a Date Calculation
Approval Metric = IF(ISBLANK([Approved Date].[Date]), "Being Performed", IF(([Approved Date].[Date]>[Due Date].[Date],"Late","On Time"))
6 Replies
- rsbin
Community Champion
The SWITCH function in DAX is very similar to using a nested IF function. Please try something like this:
ApprovalMetric = SWITCH( TRUE(), [Approved Date] = Blank(),"In Progress", [Approved Date] > [Date], "Late", "On Time" )Hope you can get this to work for you.
Regards,
- JorgePinho
Solution Sage
Approval Metric = IF(ISBLANK([Approved Date].[Date]), "Being Performed", IF(([Approved Date].[Date]>[Due Date].[Date],"Late","On Time"))
- PowerBINoob24
Resolver I
This worked like a charm, although you did have an extra parenthesis in your formula.
Approval Metric = IF(ISBLANK([Approved Date].[Date]), "Being Performed", IF(([Approved Date].[Date]>[Due Date].[Date],"Late","On Time"))
- JorgePinho
Solution Sage
I'm glad it worked. The other solution by rsbin would also work 🙂
And I'm sorry for the extra parenthesis!