Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

How to highlight SelectedValue in Line chart?

Hello community,


I have a line chart with [Date] and average of [Sales]. 

I want to highlight Selected value in line chart. But right now when I select any value , line chart disapears ( filters only selection ) and only shows selected value.


Can anyone help me? 

Helper I
Helper I

Can't someone give me a little details how to do that?..


Hi @Akbarov ,


Power BI cannot highlight a value through the slicer in line chart.You can try changing colors dynamically using conditional formatting in a column chart.

1. create a disconnected table as slicer:

Table = CALENDAR(MIN(Sheet2[Date]),MAX(Sheet2[Date]))

2. create a measure and apply to conditional formatting.

Measure = IF(MAX(Sheet2[Date])>=MIN('Table'[Date])&&MAX(Sheet2[Date])<=MAX('Table'[Date]),"red","black")



Best Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

@Akbarov , for that you need to have a slicer of the independent table and then create a measure


if(max(Dimension[COlumn]) = selectedvalue(IndTable[Column]), "Red", blank())


Create a bar visual and use that in conditional formatting using the field value option.  Convert that to line



Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors