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! Learn more

Reply
Anton-G
Helper I
Helper I

Find if value is in another table

Hello

Need to find if a value is in another table.

 

Has a table that contains inventory numbers (List).
Has two tables containing inventory (List_1 and List_2).

 

Want to add two columns that contain a "Yes" or "No" depending on if the value found in the other tables.
The tables containing inventory can have the same inventory number more than once.

 

Inventory numbersInventory numbersInventory 1Inventory 1Inventory 2Inventory 2

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anton-G 

 

Use in values(), this is very simple to check if a value in others columns or tables.

Is in 1 = IF(List[ID] in VALUES(List_1[ID]),"Yes","NO")
Is in 2 = IF(List[ID] in VALUES(List_2[ID]),"Yes","No")

 

Best regards 

Paul Zheng

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anton-G 

 

Use in values(), this is very simple to check if a value in others columns or tables.

Is in 1 = IF(List[ID] in VALUES(List_1[ID]),"Yes","NO")
Is in 2 = IF(List[ID] in VALUES(List_2[ID]),"Yes","No")

 

Best regards 

Paul Zheng

 

amitchandak
Super User
Super User

Try

 

Is in 1 = if(isblank(countx(filter(list1,list1[ID]=list[ID]),list1[ID])),"No","Yes")
Is in 2 = if(isblank(countx(filter(list2,list2[ID]=list[ID]),list2[ID])),"No","Yes")

 

Appreciate your Kudos.

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
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