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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors