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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
carlol
Helper IV
Helper IV

Color Change in Line Chart based on Slicer Value

 

I have a Funnel Plot Chart I created in DAX , the Blue dots represent the Percentage , based on a single slicer selection ; I want to change the Dot to red for the given select and still illustrate the remaing DOTS in blue 

 

I was looking at using a copy of the chart with red Dots  and super inposing it on top of the Blue dotted chart (Bring to Front) , edit the interactions of the Silcer to only alter the red dotted chart; but this has its issues , when you select one Slicer value you loose the full range of your X axis and the scale is not on par with the first chart (Blue dots) , red dot is not sitting excatly on its Blue dot counter part ; it is a hack 

 

Anybody any idea's?

 

Capture.PNG

 

 

 

1 ACCEPTED SOLUTION

Hi @carlol ,
 
You're right. Maybe it's a lack of function,you can submit your idea to help improve power bi.
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
carlol
Helper IV
Helper IV

Hi @carlol ,
 
You're right. Maybe it's a lack of function,you can submit your idea to help improve power bi.
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the help Liang 

 

Will submit the idea

carlol
Helper IV
Helper IV

Thanks 

 

I need to retain the 4 values I am using with a line an cluster chart control , the solution only appears to work if I use one Value and a stacked Chart control 

 

Do we have any other options ?

V-lianl-msft
Community Support
Community Support

Hi @carlol ,
 
You need to create a new table and use one of its column as a slicer.
Then create a measure to dynamically change the data color.
Try to use DAX like this:
Measure=  IF(VALUES(Table2[value]) IN VALUES (Table1[value]),"#ff0000")
data_colors_1.PNGdata_colors_2.PNG
 

If the problem persists,could you please share sample data or pbix?(Please mask any sensitive data before uploading)
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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