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

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

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

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.