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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MelissaL-ERGT
New Member

Conditional Formatting on a bar chart. Not working when a filter from another visual is applied

Hello,

 

I am after some help please on conditional formatting.

My data set is for a team assessment score. It is a % and is made up on 6 different attributes.

The chart i am trying to conditional format is a bar chart showing the average score for each attribute.

I have set have the conditional formatting as per the screen snip (based on number not %).conditional format.pngTA Dashboard.png

I have a table which has all the team names and their overall score, date of last assessment and their survey status.

When i click on a team (using the table as a filter) i like that the Bar chart holds the overall average score for each attribute but then highlights that teams score. However it seems to hold the conditional formatting of the overall average score and not change to the teams score (see below the circled attribute scores should be red)? Is it because of the other values in the table or do i need to change my dax formula? which is 

Average attribute Score (excl blanks) = CALCULATE(AVERAGE(fact_adapt_team_assessment[category_avg_score])/100)

single team selected.png

 

 

Looking for any suggestions please and thank you

 

 

 

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @MelissaL-ERGT ,

It appears that the behaviour of conditional formatting in cross-highlights is by design which, for me, doesn't make sense. https://community.fabric.microsoft.com/t5/Desktop/Cross-highlight-does-not-work-on-Conditionally-for... 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Anonymous
Not applicable

Hi @MelissaL-ERGT ,

Agree with danextian, you can't achieve this by highlight even change your DAX.

Highlight is different from filter and slicer, its role is only to make the whole report all the data related to the content you clicked to highlight, and other data not related to it is not filtered out but just fade out the display, so in this case you set the Conditional format corresponding to the data is still all the data instead of the In this case, the data in the Conditional format you set is still all the data, not just the FTA Team data.

I suggest you add a slicer or use the filter that comes with the report instead of clicking on a name in the table to highlight it as the filter.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @MelissaL-ERGT ,

Agree with danextian, you can't achieve this by highlight even change your DAX.

Highlight is different from filter and slicer, its role is only to make the whole report all the data related to the content you clicked to highlight, and other data not related to it is not filtered out but just fade out the display, so in this case you set the Conditional format corresponding to the data is still all the data instead of the In this case, the data in the Conditional format you set is still all the data, not just the FTA Team data.

I suggest you add a slicer or use the filter that comes with the report instead of clicking on a name in the table to highlight it as the filter.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

danextian
Super User
Super User

Hi @MelissaL-ERGT ,

It appears that the behaviour of conditional formatting in cross-highlights is by design which, for me, doesn't make sense. https://community.fabric.microsoft.com/t5/Desktop/Cross-highlight-does-not-work-on-Conditionally-for... 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.