This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I'm trying to conditionally format the data lable of a column chart, based weather the value is positive (green) or negative (red)
However, when trying to format based on 'Field Value', the dropdown box for 'What field should we base this on?' is outlined red, and it doesn't let me select my measure.
This is how my measures looks like:
%Change_Tagessatz =
VAR Change =
DIVIDE(
[Ø Tagessatz] - [Ø Tagessatz_LY],
[Ø Tagessatz_LY]
)
RETURN
FORMAT(Change, "0.0%")
%Change_Tagessatz_Color = IF( [%Change_Tagessatz] > 0, "Green", "Red")
In the dropdown box I want to put the 2. measure (%Change_Tagessatz_Color)
Any ideas?
Solved! Go to Solution.
Hi @Janica123 -You need to create a measure that returns a numeric or color code value. The best approach is to use color codes (Hex or RGB) instead of text
link:
Color Hex Color Codes (color-hex.com)
This measure returns the Hex color code for green when the value is positive and red when the value is negative.In the "Based on field" dropdown, select your measure.
Hope it helps.
Proud to be a Super User! | |
Hi @Janica123
I noticed a problem with your measures.
When you format the result using FORMAT, it returns a text value which you won't be able to compare to zero in your second measure.
Format the measure using the formatting ribbon if required.
Hi @Janica123 -You need to create a measure that returns a numeric or color code value. The best approach is to use color codes (Hex or RGB) instead of text
link:
Color Hex Color Codes (color-hex.com)
This measure returns the Hex color code for green when the value is positive and red when the value is negative.In the "Based on field" dropdown, select your measure.
Hope it helps.
Proud to be a Super User! | |
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 27 | |
| 23 | |
| 19 |