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
vellimax
New Member

Conditional Formatting

Hi,

 

I do have a question about conditional formatting and maybe one of you has a solution for it.

 

In my dashboard there is a matrix and I want to format/color the fields of CPM TL to CPM BVB based on the countries.

There is a relationship between countries of both fields to a country table which is shown as the first column.

 

If CPM TL is smaller than CPM BVB I want it to be red and if it is greater it should be green. So far I only managed to do a formatting according to the average of CPM BVB or within CPM TL (min or max).

Does anyone of you have an elegant solution on how to solve this problem?

 

vellimax_0-1658495696033.png

Please lt me know if you have any additional questions and thanks in advance.

1 ACCEPTED SOLUTION
SolomonovAnton
Super User
Super User

hello 

I think it should help you 

 

Color measure= if ([CPM TL]>[CPM BVB],"green","red")

you should apply it measure to Conditional formating->Background color-> 
Format Style - Field Value 
What field on should base this on? - [color measure]
ok

View solution in original post

2 REPLIES 2
vellimax
New Member

Thank you, that did the trick!

SolomonovAnton
Super User
Super User

hello 

I think it should help you 

 

Color measure= if ([CPM TL]>[CPM BVB],"green","red")

you should apply it measure to Conditional formating->Background color-> 
Format Style - Field Value 
What field on should base this on? - [color measure]
ok

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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