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

Conditional colors for line chart legend

 

 

Hello, 

 

I am trying to create a line chart to display my  data in Power BI. I want the following conditions to be met:

  1. When I select the "All" option in my dashboard slicer, all lines on my line chart should be displayed in gray.
  2. When I select a single value in my dashboard slicer, the line displayed on my line chart should be in orange.

 

 

When I have all sites: 

Jhiuai7_0-1689086269571.png

 

 

When I have only one selected site in the slicer: 

Jhiuai7_1-1689086314523.png

 

 

 

I have tried several methods but have not been able to find a solution that meets these requirements. I would like to know how to set up my line chart to correctly display colors when these conditions are met.

If anyone could provide any guidance or suggestions on how to achieve this goal, I would greatly appreciate it. Thank you!

1 REPLY 1
Arul
Super User
Super User

@Anonymous ,

FYI - Conditional formatting is not supported Power BI line chart till date. We can change the line color based on the legend values but conditional formatting is not supported.

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


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