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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Nudo
Helper I
Helper I

How to use slicer to remove counts of column from chart

Hey 

Once again having trouble with something, usually I end up figuring a solution myself but I always like to see what people say anyway.

So I have a line chart x axis is year + week, y axis is a count or sum of a bunch of columns of things that were created on that date.

These columns come from multiple different tables and I'm doing a count or a sum on these. So my issue is I can't figure out how to filter by each of these columns. If I put the column in the slicer it has all the values from that column in the slicer, I want to just totatly filter out this whole column no matter what the value.

I want to be able to fully hide a visual from the chart with the slicer. Any idea how I can achieve this? 

1 REPLY 1
MFelix
Super User
Super User

Hi @Nudo ,

 

To what I understand you have a metric similar to this:

 

Total value = SUM(Table[Column]) + SUM(Table[Column2]) + SUM(Table1[Column])

 

And you want to filter out the values from of the columns in order to have your calculation.

 

Try to add a Table with the name of the columns something similar to:

Table[Column]
Table[Column2]
Table1[Column]
 

 

Now redo your metric in the following way:

Total value = 
IF("Table[Column]" in Values(NewSlicerTable[Column]),
SUM(Table[Column])) + 
IF("Table[Column2]" in Values(NewSlicerTable[Column]),
SUM(Table[Column2]) + 
IF("Table1[Column]" in Values(NewSlicerTable[Column]),
SUM(Table1[Column])

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors