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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Table conditional format one column based on another column

Laganlle_2-1638359379738.png

 

Hi 

How do I format Q1 rows based on their targets?

I.e. Dept A, Q1 should have the 15000 in green 

but Dept B should have the 100 in red.

I've tried the other posts similar to this, but I can't find a working solution.

Many thanks for looking!

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

Hi @Anonymous ,

According to your description, heres my solution.

1.Create a measure.

Color = IF ( MAX ( 'Table'[Q1] ) > MAX ( 'Table'[Targets] ), "Green", "Red" )

2.Turn on the Font color option in Conditional formatting.

vkalyjmsft_0-1638772800150.png

 

3.Select the measure as the based on field.

vkalyjmsft_1-1638772800153.png

 

4.Get the expected result.

vkalyjmsft_2-1638772800154.png

 

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, heres my solution.

1.Create a measure.

Color = IF ( MAX ( 'Table'[Q1] ) > MAX ( 'Table'[Targets] ), "Green", "Red" )

2.Turn on the Font color option in Conditional formatting.

vkalyjmsft_0-1638772800150.png

 

3.Select the measure as the based on field.

vkalyjmsft_1-1638772800153.png

 

4.Get the expected result.

vkalyjmsft_2-1638772800154.png

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

Perfect! Many thanks for that - much appreciated.

SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous ,

Try conditional formatting. Refer to this article - https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#color-by-rules

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.