Forum Discussion
Single value for variation for IF Statement
I am trying to get an IF statement with below:
Ge_abe , what you trying will work a new column
Compliance = if(Accounts[Next Expected QSR].[Date] <= Today(), "NO", "YES")
If you need measure you need to try
Compliance = if(max(Accounts[Next Expected QSR].[Date]) <= Today(), "NO", "YES")
or
Compliance = if(maxX(Accounts,Accounts[Next Expected QSR].[Date]) <= Today(), "NO", "YES")
2 Replies
- amitchandak
Super User
Ge_abe , what you trying will work a new column
Compliance = if(Accounts[Next Expected QSR].[Date] <= Today(), "NO", "YES")
If you need measure you need to try
Compliance = if(max(Accounts[Next Expected QSR].[Date]) <= Today(), "NO", "YES")
or
Compliance = if(maxX(Accounts,Accounts[Next Expected QSR].[Date]) <= Today(), "NO", "YES")
- camargos88
Community Champion
Ge_abe ,
Try using:
Compliance = IF(SELECTEDVALUE(Accounts[Next Expected QSR].[Date]) <= Today(), "NO", "YES")Measures need a scalar return, so you need to nest it in a scalar function.