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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
qwertzuiop
Advocate III
Advocate III

how do i check if a value appears in another table?

Hello dear PowerBI-Community

 

I have the following problem to solve.

As shown below, I have 2 tables in PowerBI that I can't edit in advance.

I would like to create another column in table 2 (orange column) and check whether the TransportID appears in the corresponding row in table 1 or not.

 

Table A:

transportID
1
2
2

4

 

Table B:

transportIDexists in Table A
1 yes
2 yes
3 no
4 yes
5 no

 

Any ideas?

I would be very grateful for your help,

 

Cheers!

qwertzuiop

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

Hi, @qwertzuiop 

Exists in Table A = CALCULATE(COUNTROWS('Table A'),FILTER('Table A','Table A'[transportID]='Table B'[transportID]))> 0

Best,
Paul

View solution in original post

1 REPLY 1
V-pazhen-msft
Community Support
Community Support

Hi, @qwertzuiop 

Exists in Table A = CALCULATE(COUNTROWS('Table A'),FILTER('Table A','Table A'[transportID]='Table B'[transportID]))> 0

Best,
Paul

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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