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

How to adjust Legend the same as the Axis

Hi guys,

 

I'm really stuck here & do not know to adjust it. My data & selection is as below:

 

Among those, Horizontal axis list out all the product. Vertical axis is with value only (here is OSF). Legend should be month (time series)

binhtran_0-1618224735732.png

 

Is there anyway that I keep all the month within one product group the same color like below?

 

binhtran_1-1618224857036.png

It's like all the month in the same product having the same color

 

Look forward to any recommendation. Thanks guys!!!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

You can move the legend field to the axis field as a sub-axis and duplicate raw axis to the legend field, then your chart graph will be re-grouped based on legend.

101.gif

Regards,

Xiaoxin Sheng

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous,

You can move the legend field to the axis field as a sub-axis and duplicate raw axis to the legend field, then your chart graph will be re-grouped based on legend.

101.gif

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi Xiaoxin,

 

Thank you a lot for your solution!! However, it seems that the width between columns are way too high, do you have any ideas to reduce it? I have tried inner padding & category width as well, but it doesn't seems to work

https://ibb.co/rvLgzkB

Do you have any recommendation?

Thanks

Anonymous
Not applicable

Hi @Anonymous,

This graph should be defined and analyzed by power bi itself and work as expected. If these blank parts removed, power bi should aggregate similar type bars into one instead of split them into different bars.

If this effect also not suitable for your requirement, you can also consider using script-based visuals(r, python) to manually plot graphs.

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi Xiaoxin,

 

Thank you 😄

amitchandak
Super User
Super User

@Anonymous , I tried some thing very similar here in the power bi portion

https://www.youtube.com/watch?v=2P5BBRN853c

 

Skip the Tableau part

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

Hi @amitchandak ,

 

I tried & it worked as well!! However, just wondering do you have any options to clear concatenate label? My label seems really mixed up as below:

 

https://ibb.co/c16tQFp

 

Any recommendation? Thanks

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