Forum Discussion
byWing
2 years agoHelper I
DAX for checking 2 dates
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 pa...
- 2 years ago
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 )
Sergii24
2 years agoSuper User
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
)