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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.