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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.