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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
forbi
Frequent Visitor

Conditional formatting for a single column (visual matrix)

I have a matrix visual and I want to apply conditional formatting to color the measure_2 column based on the value of measure_1.
If measure_1 > Measure_2 then color column measure_2
But I don't find this option.
Thanks for helpCaptureaa.PNG

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @forbi ,

 

This is my test table:

vyadongfmsft_0-1670825770136.png

 

The measures I created:

Measure_1 = SUM('Table'[Value])

Measure_2 = CALCULATE(MIN('Table'[Value]),ALL('Table'))

Color = IF([Measure_1] > [Measure_2], "yellow")

 

Conditional formatting:

vyadongfmsft_1-1670825869206.png

 

Result:

vyadongfmsft_2-1670825887629.png

 

Best regards,

Yadong Fang

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

7 REPLIES 7
v-yadongf-msft
Community Support
Community Support

Hi @forbi ,

 

This is my test table:

vyadongfmsft_0-1670825770136.png

 

The measures I created:

Measure_1 = SUM('Table'[Value])

Measure_2 = CALCULATE(MIN('Table'[Value]),ALL('Table'))

Color = IF([Measure_1] > [Measure_2], "yellow")

 

Conditional formatting:

vyadongfmsft_1-1670825869206.png

 

Result:

vyadongfmsft_2-1670825887629.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

forbi
Frequent Visitor

thank you Uspace87 
But it colored my whole column, weird !

Because in your example all the values of Measure 1 are bigger than measure 2

I have this in the column Q 😕

Sorry, I meant in the Column z

Uspace87
Resolver III
Resolver III

@forbi 

 

1) Create a Measure = If ( Measure 1>Measure 2, 1, 0)

 

2) you use the conditional formatting on the measure you want to format 

 

Uspace87_0-1670599509968.png

 

Uspace87_1-1670599615641.png

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors