cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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
Community Support
Community Support

Hi @mat_k ,

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
Community Support
Community Support

Hi @mat_k ,

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

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

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors