Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Approval Metric = IF(ISBLANK([Approved Date].[Date]), "Being Performed", IF(([Approved Date].[Date]>[Due Date].[Date],"Late","On Time"))
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,
Approval Metric = IF(ISBLANK([Approved Date].[Date]), "Being Performed", IF(([Approved Date].[Date]>[Due Date].[Date],"Late","On Time"))
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"))
I'm glad it worked. The other solution by @rsbin would also work 🙂
And I'm sorry for the extra parenthesis!
@JorgePinho , @PowerBINoob24 ,
Hence why I have learned to use the SWITCH. Alleviates the issue with all of those parenthesis.😁
You're right! And it also looks a lot cleaner and easier to read and understand 😀
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |