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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Lookup Value in Power Query

Hi Experts

 

I have two tables in Power Query Table A and Table B Both Tables have only one column and If the Stock ID in Table A in not in Table B then add a new column to Table B with text "Investigate". i,e we have additional stock id's in table b.

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

HI @Anonymous ,

See the below ,is it what you want?

 

a sample:

Table A and Table B:

v-luwang-msft_0-1622019378113.pngv-luwang-msft_1-1622019385783.png

 

If    values about not in table A, also in table B,then "Investigate",otherwise  blank:

Then use the following dax to create a new column:

Column = if(NOT(ISBLANK(RELATED(TableB[test])))=FALSE(),"Investigate",BLANK())

 

Final you will get :

v-luwang-msft_2-1622019550527.png

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

HI @Anonymous ,

See the below ,is it what you want?

 

a sample:

Table A and Table B:

v-luwang-msft_0-1622019378113.pngv-luwang-msft_1-1622019385783.png

 

If    values about not in table A, also in table B,then "Investigate",otherwise  blank:

Then use the following dax to create a new column:

Column = if(NOT(ISBLANK(RELATED(TableB[test])))=FALSE(),"Investigate",BLANK())

 

Final you will get :

v-luwang-msft_2-1622019550527.png

 

Wish it is helpful for you!

 

Best Regards

Lucien

amitchandak
Super User
Super User

@Anonymous , Lookup in power query is like joining two tables and getting information out

 

https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/

 

 

I would suggest to consider DAX too

 

refer 4 ways to copy data from one table to another in my 2 videos
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.