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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.