Forum Discussion
PC2022
1 year agoHelper III
And, DateDiff
I need to determine which Expiration Date is 30 days out and highlight it. I was trying to write the formula below and then use "1", "0" in the conditional formatting. My formula doesn't work. Can an...
FreemanZ
1 year agoSuper User
hi PC2022 ,
try to apply the following measure as the conditional background color to [Expiration Date] field of your visual:
ApproachingDate = IF
( AND ( NOT ISBLANK (( [Expiration Date] )), DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) = 30, "red" )
like this:
āhttps://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
PC2022
1 year agoHelper III
DAX didn't work, gave this error: too many arguements were passed to the AND function, The max argument count for the function is 2.