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

Check if Row in Table Exists in Another Inactive Related Table

I have a table called 'Filtered Items' which is a duplicate of a table called 'Items'.

 

I've created a slicer containing 'Filtered Items'[Name] and a table card containing 'Items'[Name].

 

The behavior I am trying to create is to remove any items in the table containing 'Items'[Name] where 'Items'[Name] can be found in the selected values of the slicer containing 'Filtered Items'[Name].

 

Here is what I've tried so far but is not working:

 

COUNTROWS(
CALCULATETABLE(
ALLSELECTED('Filtered Items'),
USERELATIONSHIP(Items[ILC], 'Filtered Items'[ILC])
)
) > 0
I was hoping that in the table visualization each row of Items[Name] will filter 'Filtered Items'[Name] and return 0 rows when Items[Name] cannot be found in the selected slicer values.
 
1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous

 

I'm not sure I completely understand what you are aiming for but let's try this:

 

1. Place a matrix visual in your report with 'Items'[Name] in rows

2. Create a measure to determine what items will be shown:

 

ShowMeasure =
IF (
    NOT ( SELECTEDVALUE ( 'Items'[Name] ) IN VALUES ( 'Filtered Items'[Name] ) ),
    1
)

 

3. Place the measure in the visual level filters of the matrix visual and select to 'Show items when the value:'--> is 1

 

By doing that, you will filter out the names that are not selected in the slicer

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Anonymous

 

I'm not sure I completely understand what you are aiming for but let's try this:

 

1. Place a matrix visual in your report with 'Items'[Name] in rows

2. Create a measure to determine what items will be shown:

 

ShowMeasure =
IF (
    NOT ( SELECTEDVALUE ( 'Items'[Name] ) IN VALUES ( 'Filtered Items'[Name] ) ),
    1
)

 

3. Place the measure in the visual level filters of the matrix visual and select to 'Show items when the value:'--> is 1

 

By doing that, you will filter out the names that are not selected in the slicer

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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