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
Anonymous
Not applicable

Change color of line with changing bar colors in 'Line and stacked column chart'

Hi, I need to change the line colors on the graph below. However, since I'm using year as the legend, when I change the line color, it is also changing the bar color as well. Any way to get the line as all one color while leaving the bar colors alone?

duncanh_0-1665067563874.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , In power bi standard clustered line visual line color does not change as you have shown.

Only the bar color can be changed, that too when you use two axes not legend - refer Concatenate Label off : https://youtu.be/QgI0vIGIOOk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
BITomS
Continued Contributor
Continued Contributor

Hi @Anonymous,

 

It would be good to get more detail about the model structure / visual configuration that sits behind this, but I suspect this is happening because you are using the same date (hierarchy) field for both the x-axis and the column legend?

 

In your date table, if you do not already have a 'year' column as well as 'date', you should create a column that just contains the year. Then use the date (hierarchy) field for the x-axis and use the newly created year field for the legend.

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