The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
I find myself struggling with DAX and appreciate some insights on how to write this DAX pls:
End goal: To set up conditional formatting which will flag an item if the [Due Date] is pass today, AND the [Corrective Action Completion Date] is blank, (which means the engineer has not completed the work yet.)
My error:
Something must be wrong with [Corrective Action Completion Date], but I cannot figure out why.
Any insights, advice will be much appreciated pls.
Thank you so much~
Solved! Go to Solution.
Hi @byWing, the answer is right there in your error message: ISBLANK() requires you to pass a single value as an argument, not a table. You can use SELECTEDVALUE() or any other aggregation to obtain a single value. This should work fine:
Overdue =
if(
AND(
MAX( [Due Date] )>TODAY(),
ISBLANK( SELECTEDVALUE( sa_RPN_Reduction[corrective action completion date] ) )
),
1,
0
)
Hi @byWing, the answer is right there in your error message: ISBLANK() requires you to pass a single value as an argument, not a table. You can use SELECTEDVALUE() or any other aggregation to obtain a single value. This should work fine:
Overdue =
if(
AND(
MAX( [Due Date] )>TODAY(),
ISBLANK( SELECTEDVALUE( sa_RPN_Reduction[corrective action completion date] ) )
),
1,
0
)
Thank you @Sergii24 for your reply. Your reply helped me a lot and this is the final one I used:
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
80 | |
77 | |
46 | |
39 |
User | Count |
---|---|
141 | |
110 | |
64 | |
64 | |
53 |