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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Search a list of Items from another table

singhmithsingh_0-1618616149858.png

 

I am trying to acheive the column B, but I can't able to.

 

I want to search each items from table 2 in table 1, and if items is not there in Table 1 then return items in column B with comma seperated. please help me.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below.

 

Creating a measure.

Picture2.png

Result measure =
VAR tabletwo =
VALUES ( Table2[ID] )
VAR resulttable =
EXCEPT ( tabletwo, VALUES ( Table1[ID] ) )
RETURN
CONCATENATEX ( resulttable, Table2[ID], ", " )
 
 
Creating a column
Picture3.png
 
Result column =
VAR tableonecurrentselect = Table1[ID]
VAR tabletwo =
VALUES ( Table2[ID] )
VAR resulttable =
EXCEPT ( tabletwo, {tableonecurrentselect} )
RETURN
CONCATENATEX ( resulttable, Table2[ID], ", " )
 
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please check the below.

 

Creating a measure.

Picture2.png

Result measure =
VAR tabletwo =
VALUES ( Table2[ID] )
VAR resulttable =
EXCEPT ( tabletwo, VALUES ( Table1[ID] ) )
RETURN
CONCATENATEX ( resulttable, Table2[ID], ", " )
 
 
Creating a column
Picture3.png
 
Result column =
VAR tableonecurrentselect = Table1[ID]
VAR tabletwo =
VALUES ( Table2[ID] )
VAR resulttable =
EXCEPT ( tabletwo, {tableonecurrentselect} )
RETURN
CONCATENATEX ( resulttable, Table2[ID], ", " )
 
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

it's working, Thank you😊

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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