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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.