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, I need some help with conditional formatting. I have two measures, one TARGET and the other the actual MEASURE. I am wanting to change the colour of the bar to GREEN if the measure was achieved and RED if not. How would I go about doing this?
I would presume under Data colours, but there is no options there?
What I ended up doing which worked well was creating 2 measures...
This way I was able to do conditional formatting on these results.
hi @renecornish
If you put two or more measure into one chart visual, you could not use conditional formatting any more.
so when you just use one measure then you could add a new measure like this: Measure = if([ACTUAL] >= [TARGET] , "Green","Red")
then use it to conditional format it.
if you still have the problem, please share your sample pbix file and your expected output.
Regards,
Lin
@renecornish , Create a color measure and use that in conditional formatting using "Field Value" Option
Measure = if([ACTUAL] >= [TARGET] , "Green","Red")
refer for steps
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
What I ended up doing which worked well was creating 2 measures...
This way I was able to do conditional formatting on these results.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 47 | |
| 45 | |
| 33 | |
| 33 | |
| 30 |
| User | Count |
|---|---|
| 136 | |
| 116 | |
| 58 | |
| 58 | |
| 56 |