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
Woncarc
Frequent Visitor

Conditional formatting doesn't work on specific graphics

Hi!

 

I don't know why, but the conditional formatting to change colors depending on a switch factor doesn't work on specific visuals, such as the Card (New) or any bar graph.

Furthermore, the Card (New) visual the conditional formatting affects the background or the shadow, but not the callout value itself. 

In relation to the bar graphs, I can't even use gradient or rules, so the conditional function itself is broken.

 

But, for some metrics, it does work, for example, the normal Card or the KPI visual.

 

I've created a Power BI file from 0 to see if it has something to do with other relationships, but it does not. 

 

Woncarc_0-1743793586674.png

The graphics I've tried

 

 

Woncarc_1-1743793603135.png

The switch function used

 

 

Woncarc_2-1743793611489.png

Table used

 

Any help would be much appreciated.

Thanks!

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Woncarc 

 

The new card visual still is preview so expect for bugs. I use it but with caution. For example, with small multiples, I can't make it work for the first item but can for the rest and I return the field value using tables and matrices, the values are as expected. For the bar chart, it requires a column to be added to Y-axis, you can create a dumy column using a calclulated column  or in another table with a non-blank value. Below is a sample dummy table with an unnamed column containg a single row with a value of "". Add this to your viz.

dummy = {""}

 

danextian_0-1743843963272.png

Please see the attached pbix.





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

2 REPLIES 2
Woncarc
Frequent Visitor

It did work! Thank you very much!

danextian
Super User
Super User

Hi @Woncarc 

 

The new card visual still is preview so expect for bugs. I use it but with caution. For example, with small multiples, I can't make it work for the first item but can for the rest and I return the field value using tables and matrices, the values are as expected. For the bar chart, it requires a column to be added to Y-axis, you can create a dumy column using a calclulated column  or in another table with a non-blank value. Below is a sample dummy table with an unnamed column containg a single row with a value of "". Add this to your viz.

dummy = {""}

 

danextian_0-1743843963272.png

Please see the attached pbix.





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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.