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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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