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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.