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

Design color in line charts --> color changes randomly in line charts

Hello,

I´m currently using a design in PBI for a few line charts. My problem is, that I have a few tabs which all include line charts with different data (x axis: date, y axis: sales, legend: companies). The line charts show always the Top 5 companies (due to TopN Selection). My problem is, that the 5 lines in the line charts do not show the first 5 colors (as given within the design) but one of the 7 other colors given by the design. This seems to me a bit random.  Additionally, when I´m in tab 1 and change the colors of the design, the charts in tab 1 show the correct colors for the correct lines (Color 1 --> Line 1, Color 2 --> Line 2.....). If i switch to tab 2, the colors are random matched to the lines. If I´m in tab 2 and change the design, the colors are correct, but the colors in tab 1 are now random. Can someone tell me due to which rule the colors are paired with the lines by PBI?

 

Best regards

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Based on what I got.

Conditional formatting is not supported as now in visual once you use a legend. So you can not fix color for the top companies or companies by name.

Create or vote for an idea https://ideas.powerbi.com/ideas/

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

The idea is not to condiational format the lines (companies), but to choose a specific color for design color 1, which should always be the color used for the first (!) line in the line chart. But this doesn´t work for all line charts in all tabs. The line charts (in other tabs) randomly use the color given by the design.

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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