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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Solution Supplier
Solution Supplier

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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