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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
PascalM
New Member

Conditional formatting not working correctly when cross-filtering

Hi,

 

I've created a bar chart with conditional formatting: green for positive values, red for negative values:

PascalM_0-1602660593814.png

When I apply a cross cross-filter, the color coding seems to be based on the unfiltered value, resulting in a positive filtered value being displayed in red when the unfiltered value is negative:

PascalM_1-1602660706896.png

Any ideas on how to solve this?

 

Thanks

Pascal

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PascalM ,

 

For my test, conditional formatting based on Highlight could work well in Table visualization but no other visualizations...

10.20.3.2.gif

Here is the pbix file.

 

If you also want this in power bi, let the power bi community to know this things and give your votes at power bi site's feedback - https://ideas.powerbi.com/ideas/


Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @PascalM ,

 

For my test, conditional formatting based on Highlight could work well in Table visualization but no other visualizations...

10.20.3.2.gif

Here is the pbix file.

 

If you also want this in power bi, let the power bi community to know this things and give your votes at power bi site's feedback - https://ideas.powerbi.com/ideas/


Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @PascalM ,

For my test, I prefer to filter with Slicer:

10.20.3.1.gif

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

Hi Eyelyn,

 

Thanks for your suggestion.  I know that when changing interaction between my visuals from highlight to filter, I can achieve the same result as with your suggested slicer.  But my objective is to have the original bar shown together with the sliced value, i.e. to have the highlight approach but with color applied according to the actual values...

 

Regards

Pascal

amitchandak
Super User
Super User

@PascalM , I doubt that will when users fill it will change based on coditional formatting. Because the overall number has not changed.

 

It will only change with filter

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

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.