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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

LookUp function

Hello Community,

 

I have 2 tables  and in Table-1 i have columns called ID, Name, address and in second table i have ID column and i want to do lookup on table-2 and create a calculated column in table-1 that if any ID matching then i need "IDYes" and if its not matching i need "IDNo". 

 

Table-1  
IDNameAddress
1Abc123fva
1def4rfsa
2Abcdasdd
4josgiedsd

 

Table-2
ID
1
2
3
5

 

Out put   
    
Table-1   
IDNameAddressNew Column
1Abc123fva1Yes
1def4rfsa1Yes
2Abcdasdd2Yes
4josgiedsd4No

 

How can i achieve this?

 

Thanks 

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Create a relationship from the ID column of Table1 to the ID column of Table2.  In Table, write this calculated column formula

=if(ISBLANK(RELATED(Table2[ID])),"No","Yes")

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ElenaN
Resolver V
Resolver V

Hello,

 

You can try something like this:

 

Column = IF(LOOKUPVALUE(Table1[ID], Table2[ID], Table1[ID]) = Table1[ID], Table1[ID]&"Yes", Table1[ID]&"No")
 
Regards,
ElenaN
Anonymous
Not applicable

Its is not taking 2nd table. Table2[ID]


@ElenaN wrote:

Hello,

 

You can try something like this:

 

Column = IF(LOOKUPVALUE(Table1[ID], Table2[ID], Table1[ID]) = Table1[ID], Table1[ID]&"Yes", Table1[ID]&"No")
 
Regards,
ElenaN


@ElenaN wrote:

Hello,

 

You can try something like this:

 

Column = IF(LOOKUPVALUE(Table1[ID], Table2[ID], Table1[ID]) = Table1[ID], Table1[ID]&"Yes", Table1[ID]&"No")
 
Regards,
ElenaN

 

Hello,

 

I am sorry but i do not understand your reply. What error message do you receive?

 

Regards,

ElenaN

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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