Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hey Everyone,
I have a Power BI reort connects to Power Bi dataset as a live connection.
I have a table/matrix with financial numbers based on calendar months, and I would like to apply conditional background coloring:
* If month (number) is less (<) than current month then green if higher (>) then blue.
Is that possible to achieve?
Solved! Go to Solution.
Hi @Anonymous
Does your Model or Date Table have a Month Column? Do you use that column?
BTW, you need to add a measure and use that in Color Conditional formatting like this:
Color M =
VAR _A =
MONTH ( TODAY () )
VAR _B =
MONTH ( MAX ( date[date] ) )
RETURN
IF ( _B < _A, "Green", "Blue" )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
FIFA World Cup - Medal Records
Hi @Anonymous
Does your Model or Date Table have a Month Column? Do you use that column?
BTW, you need to add a measure and use that in Color Conditional formatting like this:
Color M =
VAR _A =
MONTH ( TODAY () )
VAR _B =
MONTH ( MAX ( date[date] ) )
RETURN
IF ( _B < _A, "Green", "Blue" )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
FIFA World Cup - Medal Records
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 139 | |
| 128 | |
| 60 | |
| 59 | |
| 57 |