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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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