cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors