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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.