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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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