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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Show and Hide data point from line and stacked column chart

Hi All,

 

I have a Line and Stacked column chart and a Chart Option slicer. How do I show and hide the data points (bar and line data points) by toggling the slicer? This Chart Option slicer has no connection to any data tables.

E.g., if deselect A from slicer, data point A should not appear in the chart.

 

 

beekee_0-1626159630592.png

 

 

Thanks.

 

Regards,

BK

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

with a measure you can check the selection and output or hide the value accordingly.
Here is an example:

 

A = IF("A" in VALUES('Chart Option'[Chart Option]), SUM('Table'[A]), BLANK())

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

1 REPLY 1

Hi @Anonymous ,

 

with a measure you can check the selection and output or hide the value accordingly.
Here is an example:

 

A = IF("A" in VALUES('Chart Option'[Chart Option]), SUM('Table'[A]), BLANK())

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.