Forum Discussion
amirabedhiafi
Impactful Individual
5 years agoColor min and max value in a bar chart
I have the following bar chart : I want to color the max and the min bar chart with red and green respectively when choosing any filter. So De Ruyter will be in red and New Britain in...
- 5 years ago
Hey amirabedhiafi ,
the conditional formatting has moved :-), I'm sorr for the inconvenience. Here you can add the measure that colors the min and the max value:
Hopefully, this is what you are looking for.
Regards,
Tom
Johanno
Continued Contributor
5 years agoTo set color by value depending on the filtered value, create a measure like:
Color coding =
SWITCH (SELECTEDVALUE('Table'[Country]),
"New Britian", "#00ff00",
"De Ruyter", "#ff3300"
)
Then set color by using fx - format by "Field value" - Based on field Color coding (or the name of the measure)
Is that answer to the question?
leojhernandez
Helper I
2 years agoHow do you do this using a maximum and minimum variable? Suppose "New Britian" is the minimum, and vice versa.