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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
triseid
Frequent Visitor

Filtering a column for a slicer

I have two tables that look like this:

 

Table 1   | Table 1                      Table 2   |   Table 2  

Names        IDs            1-->*         IDs      |   Unique transactions

 

The 'Names' column contains every single name in the organization. I want to create a slicer using the 'Names' column but limit it to only the 'Names' that have IDs appearing in the 'IDs' column on Table 2. (this is a 1 to * relationship).

 

I feel like this is very basic, but can anyone please help me figure this out? 

 

Thank you! Will be sure to mark the solution. 

1 ACCEPTED SOLUTION

Okay ^^ it was very simple and I figured it out. 

 

=if(count(TransactionID)>0,1,0))

 

Then set that as a filter on the slicer with 'Names'. Only show values where the measure = 1. 

 

Thanks you!

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Use the Filters pane to filter out values based upon the column you want to filter.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Care to be more specific? 

 

I tried "Transaction ID" IS NOT BLANK but that didn't work. I assume I have to create a new table with only names with transactions, but I'm unsure how to go about doing that. 

Okay ^^ it was very simple and I figured it out. 

 

=if(count(TransactionID)>0,1,0))

 

Then set that as a filter on the slicer with 'Names'. Only show values where the measure = 1. 

 

Thanks you!

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.

Top Solution Authors