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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting on a Switch Metric - Tabular Model

Hello,

 

I am attempting to use the Conditional Formatting - Field Value functionality on a switch metric for a Card visualization; however, the field selector does not let me choose a field value from my model. The "OK" button is grayed out for every metric from my model.

image.png

 

The switch metrics are all functioning properly if I view the data in a normal table format with the coloring metric accurately displaying the Color metric as "Red", "Green", "Yellow", etc...  as a text field in the table.

 

The data model was published through visual studio to a serve and the PowerBI file is connected to the server hosting the data model. Are there any conditional formatting - field value limitations when connecting to a tabular data model? The field value functionality seems to work through switch metrics for me when housing the data within the PowerBI file.

 

Thank you!

1 REPLY 1
Stachu
Community Champion
Community Champion

I think text is not yet supported, right now it's in the planned phase
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/32184037-conditional-formatting-f...

I guess you could try crating numeric measures that would return e.g. 1,2,3 for red, yellow, green, but I'm not sure it's gonna work in your situation

 

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

Proud to be a Datanaut!



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.