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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jesly_ajin
Helper III
Helper III

Change the color of line in line and clustered column chart

I have the graph as below, the Revenue is the bar and Gross Margin as line. I need the color of the line to be red for negative values and green for positive values. Please help as i am completely new to this.

 

 

 

LineGraph.JPG

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi jesly_ajin,

As  I know, there is no conditional format for line in line and clustered column chart. You could try to put field which have negative value in column

149.png

Or another workaround is that you could create another measure for this

Measure 2 = if(SUM('Table'[q2])>0, SUM('Table'[q2]), BLANK())

150.png

By the way, you could submit this requirement in power-bi-ideas

Best Regards,

Zoe Zhi

 

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

4 REPLIES 4
dax
Community Support
Community Support

Hi jesly_ajin,

As  I know, there is no conditional format for line in line and clustered column chart. You could try to put field which have negative value in column

149.png

Or another workaround is that you could create another measure for this

Measure 2 = if(SUM('Table'[q2])>0, SUM('Table'[q2]), BLANK())

150.png

By the way, you could submit this requirement in power-bi-ideas

Best Regards,

Zoe Zhi

 

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

@dax 

As shown in your 2nd image i need it continuous line.

I tried the same now, but i am getting another line in the graph instead of continuous line.LineColorDynamic.JPG

dax
Community Support
Community Support

Hi

 

What is your measure? You might need to try below  measure

 

 

Measure 2 = if([GP]>0, [GP]), BLANK())

Or you could try to upload your sample data  or pbix file, I will help you more correctly

 

Best Regards,
Zoe Zhi

@dax 

Thanks a lot for the solution.

Works good after a refresh.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors