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
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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
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
Top Kudoed Authors