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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Line Graph Modifications in Power BI

I use the below line graph in my report. My customer is looking for the line color changes when it is above 2.5 value. The above values should be in green and the below values should be in red.

 

How this can be achieved ?

 

Capture.JPG

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Unfortunately, it is unsupported to conditional format line chart in Power BI currently. I'd like to suggest you vote on the similar idea and add your comments there to improve Power BI for making this feature coming sooner.

 

Best Regards

Allan

 

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

amitchandak
Super User
Super User

@Anonymous , Not possible. You can show marker, That only when you are using only one line and no legend

 

Create color measure 

color = if([Measure] >2.5 , "red", "green")

Then use this in conditional formatting using the field value option. Create a Bar visual then do conditional formatting , convert to line with markers. The marker will be in color

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Helpful resources

Announcements
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.