Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Solved! Go to Solution.
hi @PC2022 ,
depending on your business logic, you need to change it to:
ApproachingDate = IF
( NOT ISBLANK (( crcc5_permitcoordination[Expiration Date] )) && DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) >=30, "red" )
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
I changed DAX and it gave me no errors:
hi @PC2022 ,
depending on your business logic, you need to change it to:
ApproachingDate = IF
( NOT ISBLANK (( crcc5_permitcoordination[Expiration Date] )) && DATEDIFF (TODAY (),crcc5_permitcoordination[Expiration Date], DAY ) >=30, "red" )
I added one more && and it worked! Thank you!
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |