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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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