Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello Everyone,
I have a simple table (Name, Value) , and I have a slicer with Name
Requirement:
When I select a name, the bar of this name changes its color, like this picture
My thoughts are:
1. delete the interaction between the slicer and the bar chart
2.develop a dax formula to get only the selected value ( SelectedValue function won't work as it will get a the same name for each row)
3. this dax will generate 1 only for the selected row and 0 for other rows
4.make color code based on the rule that this function = 1 to be red
Thanks
Solved! Go to Solution.
Thank you @amitchandak this helped alot,
also I developed a calculation with same logic that may help anyone
Thank you @amitchandak this helped alot,
also I developed a calculation with same logic that may help anyone
@Anonymous , Create an independent date table with name
Names = distinct(Table[Name])
then create a color measure and use that in conditional formatting using field value option
You can use color name or hex code with prefix #
color = if(isfiltered(Names[Name]) && Max(Table[Name]) in allselected(Names[Name]) , "Red", "Blue" )
PowerBI Abstract Thesis: How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
Similar problem that you've answered before. Want selected column to be a different color. I followed your instructions, but cannot get only one column to change color based on slicer selection. All columns turn blue or red.
What I have:
What I want:
Table
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |