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
r0ot5
Frequent Visitor

Display slicer filtered out data

Hi All,

 

Here's what I'm trying todo. I have a report with a slicer and a line chart. When I select value on the slicer I would like to have another line chart display the data that the slicer excluded.

 

Not sure if it's possible.

 

Thanks,

Marc

4 REPLIES 4
jdbuchanan71
Super User
Super User

You could do something along these lines.  In my example I have the sales amout by Brand and a slicer on the color.  I also have a measure that calculates the [Sales Amount] for ALL colors then subtracts out the [Sales Amount].  What this does is calculate the amount that is excluded based on the slicer.

Excluded Color = 
CALCULATE([Sales Amount], ALL ( 'Product'[Color] ) ) - [Sales Amount] 

excludedcolor.jpg

Thanks for the exemple. Not sure how I could apply this to what I'm trying to do.

 

I have a dataset based on date and I want my second Line Chart to display my excluded date from the slicer.

Date_Slicer.jpg

 

 

 

 

 

 

 

 

Thanks, 

You just need to change the target of the ALL:

Excluded Dates = 
CALCULATE([Sales Amount], ALL ( Dates[Year] ) ) - [Sales Amount] 

I will have to dig a bit more to get it working I think.

 

My data is splitted by Year and also by Month. When I filter out years, I still want to get total by month. So will have to see how I can make it work.

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.