Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Syndicate_Admin
Administrator
Administrator

Conditional formatting in Filter

Good Night, I wanted to check if it is possible in a bar graph when selecting in this case a province according to a segmenter that is painted a different color and not that is filtered throughout the graph?, for example when filtering JUJUY that in the graph is highlighted? from now on thank you very much Greetings.-Captura de pantalla 2022-07-06 195839.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin , Not very clear, but if the object is highlighted the selectedvalue, then you need independent value

Create a color measure and use that in conditional formatting using the field value option

 

measure =

var _val = selectedvalue(province[province]) 

return

Switch(True() ,

Max(Table[province]) = _val , "Green",

"Yellow"

)

 

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/...

 

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @pcarrizo,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept it to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Syndicate_Admin , Not very clear, but if the object is highlighted the selectedvalue, then you need independent value

Create a color measure and use that in conditional formatting using the field value option

 

measure =

var _val = selectedvalue(province[province]) 

return

Switch(True() ,

Max(Table[province]) = _val , "Green",

"Yellow"

)

 

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/...

 

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.