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
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
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.