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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
V-pazhen-msft
Community Support
Community Support

@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
V-pazhen-msft
Community Support
Community Support

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

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.