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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gree1502
Helper II
Helper II

Compare 2 columns of 2 tables and filter one table

Hi,

 

I have 2 tables,

Table A with column "ID" and other columns

Table B with one column "ID"

 

the ID values in both the tables keep updating.

 

I want to filter table A (filter out ID values in Table A, which are in Table B "ID" column).

Is there a way to establish this relationship?

 

Any help appreciated.

Thanks

1 ACCEPTED SOLUTION

@gree1502

 

Create this Column:

 

Column = COUNTROWS(RELATEDTABLE('Table B'))




Lima - Peru

View solution in original post

6 REPLIES 6
Vvelarde
Community Champion
Community Champion

@gree1502

 

Do you want to filter in the Report or create a new table with Table A without the IDs equals in Table B.

 

Another Question.. The IDs in A & B are Duplicates or Uniques




Lima - Peru

Sorry for not being clear about the requirement.

 

I need to filter out in report.

The ID's in both the tables are unique.

 

Thanks

@gree1502

 

Hi, supossing that you have a relationship between both tables

 

Set in Report Filter like the image:

 

filter.png




Lima - Peru

thank you for the response.

I have tried this option, but I have many more constraints applied to Table A in the report which is creating a confusion.

Is there a way to create a column measure in Table A which will return 0 if the value is not present in Table B?

 

Thanks

@gree1502

 

Create this Column:

 

Column = COUNTROWS(RELATEDTABLE('Table B'))




Lima - Peru

It worked. Thank you:)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.