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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
KMichael99
Frequent Visitor

Conditional Format Field Value

Hi, 

 

I'm trying to conditionally format the background colour of a cell in a matrix, based on another measue (this is a custom measure used to calculate an individual player's maximum score in a test). 

 

However, when trying to format based on 'Field Value', the dropdown box for 'What field should we base this on?' is outlined red, and it doesn't let me select anything from the dropdown. 

 

Any ideas? Is there a setting I don't have switched on? 

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @KMichael99 ,

 

Based on the information you provided, I have created an example which I hope will be helpful:

 

1.Rankx the score

 

ranking =

RANKX ( ALL ( 'Table' ), CALCULATE ( MAX ( 'Table'[score] ) ),, DESC )

 

 

2.Create a measure

 

color =

IF ( [ranking] = 1, "red", BLANK () )

 

 

3.Applying color to score

vyifanwmsft_0-1704174729917.png

 

vyifanwmsft_1-1704174729920.png

 

vyifanwmsft_2-1704174813822.png

 

 

Final output:

vyifanwmsft_3-1704174813823.png

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @KMichael99 ,

 

Based on the information you provided, I have created an example which I hope will be helpful:

 

1.Rankx the score

 

ranking =

RANKX ( ALL ( 'Table' ), CALCULATE ( MAX ( 'Table'[score] ) ),, DESC )

 

 

2.Create a measure

 

color =

IF ( [ranking] = 1, "red", BLANK () )

 

 

3.Applying color to score

vyifanwmsft_0-1704174729917.png

 

vyifanwmsft_1-1704174729920.png

 

vyifanwmsft_2-1704174813822.png

 

 

Final output:

vyifanwmsft_3-1704174813823.png

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Idrissshatila
Super User
Super User

Hello @KMichael99 ,

 

can you show us the field you're trying to sput the formatting on and show the issue you're seeing?



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.