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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Exclude items from a filtered list

I have a master table of person's names and I have a separate table of individuals I want to exclude from the master list.

 

Rather than removing the individuals one by one from the visual/page/report filters, is there another method to this?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Found 2 methods doing so:

1) Except(SelectColumns(MasterTable, "XXX", MasterTabl[Name]), SelectColumns(ListToExclude, "YYY", ListToExclude[Name]))

 

2) Anti Join using merge queries

 

thanks!

View solution in original post

6 REPLIES 6
AlB
Community Champion
Community Champion

Hi  @Anonymous

 

Two options:

1. Create a calculated table like this:

 

NewMasterTable =
CALCULATETABLE (
    MasterTable,
    EXCEPT ( DISTINCT ( MasterTable[Name] ), ListToExclude )
)

and use it as new master table. 'ListToExclude' is the one-column table with the names to be excluded. 

 

2. a) Create a one-column table with the list of names to keep:

 

 

FilterColumn =
EXCEPT ( DISTINCT ( MasterTable[Name] ), ListToExclude )

b) Place FilterColumn[Name] in Page level filters and select Advanced Filtering --> Show items when the value is:  Not blank 

 

 

Anonymous
Not applicable

Looks like EXCEPT only works if the 2 tables (MasterTable & ListToExclude) have the same dimensions.

 

My MasterTable has 20+ columns with all sorts of information, and List ToExclude is 1 column.  Is there an approach using Parameters?

AlB
Community Champion
Community Champion

@Anonymous

 ??

The  two tables in the EXCEPT in the code above are one-column tables:

     EXCEPT ( DISTINCT ( MasterTable[Name] ), ListToExclude )

The number of columns in MasterTable is irrelevant.

Anonymous
Not applicable

This is the error I am having:

 

 

A single value for column 'name' in table 'MasterTable' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

AlB
Community Champion
Community Champion

 

Neither of the options suggested above are measures. They're both calculated tables as indicated  

Anonymous
Not applicable

Found 2 methods doing so:

1) Except(SelectColumns(MasterTable, "XXX", MasterTabl[Name]), SelectColumns(ListToExclude, "YYY", ListToExclude[Name]))

 

2) Anti Join using merge queries

 

thanks!

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