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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.