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.
Hi
I have matrix table with a reference column and a next review due date coloumn
I would like to highlight those in the current month green, next month amber and those in 2 months time red based on the date column example below
Hoping someone could suggest a dax measure I could apply for the conditional formatting many thanks
👍
Solved! Go to Solution.
Try this dax:
FORMAT = SWITCH(MONTH(SELECTEDVALUE('Table'[Review Due Date])),
MONTH(TODAY()), "Green",
MONTH(TODAY()) + 1, "Orange",
MONTH(TODAY()) + 2, "Red"
)
Hi, thank you with your help with this however we have just noticed it also highlights the months from previous years also. I.e today it formats Sept 2022, Sept 2023, Sept 2024
Is there any way to add month and year to this?
Thank you
Try this dax:
FORMAT = SWITCH(MONTH(SELECTEDVALUE('Table'[Review Due Date])),
MONTH(TODAY()), "Green",
MONTH(TODAY()) + 1, "Orange",
MONTH(TODAY()) + 2, "Red"
)
I attempted this solution, but the formatting is not working. Any suggestions?
I want anything before today's date to be red, anything this month orange, and next month, yellow.
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 | |
8 | |
6 | |
5 |
User | Count |
---|---|
20 | |
14 | |
10 | |
9 | |
6 |