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

Line and column chart - column conditional format based on line value

Hello,

 

Doing some research I've found there is no possibility to conditional format Line and column charts.

I would like to format Columns ⇾ when the value of column is greater than value of line, column will change color.

 

Is there any workaround / custom visual to achieve this ?

 

{67480DD5-F1E3-4A5E-BA81-61AE1F9F18DB}.png.jpg

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

Hi @Anonymous ,

I create a simple sample. Please reference it to modify the formula based on your actual situation.

Compare =
VAR a = SUM ( 'Table'[Sales] ) 
RETURN 
IF ( a >= [Measure], "Green", "Red" )

1.gif

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

I create a simple sample. Please reference it to modify the formula based on your actual situation.

Compare =
VAR a = SUM ( 'Table'[Sales] ) 
RETURN 
IF ( a >= [Measure], "Green", "Red" )

1.gif

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-xuding-msftthanks a lot, works great 🙂

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.