The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 green.
Solved! Go to Solution.
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
To 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?
How do you do this using a maximum and minimum variable? Suppose "New Britian" is the minimum, and vice versa.
Hey @amirabedhiafi ,
I assume the answer in this article contains what you are looking for: Solved: Re: Highlight max value in column chart - Microsoft Power BI Community
Regards,
Tom
Hey @TomMartens I can't find the Advanced Controls in Data Color with the latest update of PowerBI.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
120 | |
85 | |
75 | |
55 | |
46 |
User | Count |
---|---|
135 | |
127 | |
78 | |
64 | |
63 |