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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.