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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Solution Supplier
Solution Supplier

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

If my message helped solve your issue, please mark it as Resolved! If it was helpful, consider giving it a Kudos!

View solution in original post

2 REPLIES 2
vellimax
New Member

Thank you, that did the trick!

SolomonovAnton
Solution Supplier
Solution Supplier

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

If my message helped solve your issue, please mark it as Resolved! If it was helpful, consider giving it a Kudos!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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