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
SamOvermars
Helper I
Helper I

Line Chart having multiple lines?

Hello,
How can I have chart the shows multiple lines based on the data I have ( sample data attached)
I simply want the lines to represent the averages of "Good" in green line for example. "Bad" in red and so on. How can I achieve this in Power BI?

download.png

 

Sample Data:

Good
Bad
Okay
Good
Bad
Okay
Okay
Okay
Okay
Okay
Good
Good

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @SamOvermars,

AFAIk, conditional formatting can use to setting color based on conditions expression but it does not work when you enable legend on the chart.

Tips and tricks for formatting in reports - Power BI | Microsoft Docs
For this scenario, I think you need manually change the data label colors on the format tab(roller icon).
Regards,

Xiaoxn SHeng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @SamOvermars,

AFAIk, conditional formatting can use to setting color based on conditions expression but it does not work when you enable legend on the chart.

Tips and tricks for formatting in reports - Power BI | Microsoft Docs
For this scenario, I think you need manually change the data label colors on the format tab(roller icon).
Regards,

Xiaoxn SHeng

hashtag_pete
Helper V
Helper V

Hello Sam, 

there might be several reasons as to why the visual does not display what you want. 

- From your sample data, I cannot see a connection to the date - did you establish one?

- you should create an explicit measure like countrows and add this to your legend as well as to your values

 

Does that help? If so, please

  • mark this post as a solution
  • give kudos

Thanks hashtag_pete

 

amitchandak
Super User
Super User

@SamOvermars ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

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

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
Top Kudoed Authors