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! Request now

Reply
apmulhearn
Helper III
Helper III

Lookup Multiple Values from Another Table & Concatenate with ; as delimeter

Hello,

 

I am working with two distinct tables which contain information about trips. I need Table2.AllEmailAddresses to contain all distinct matches from Table1.EmailAddress where the Status is Booked. It should ignore any other Status values. If an email address is used multiple times for a DepartureID, that email address should only be included once. Sample Image below with "AllEmailAddress" in Table2 completed with ideal result.

 

Many thanks for any help.

apmulhearn_1-1660927456398.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @apmulhearn ,

You can create a calculated column as below in Table2 to get it:

Column = 
CONCATENATEX (
    FILTER (
        'Table1',
        'Table1'[DepartureID] = 'Table2'[Departurel]
            && 'Table1'[Status] = "Booked"
    ),
    'Table1'[EmailAddress],
    ";",
    'Table1'[EmailAddress],
    ASC
)

yingyinr_0-1661241142879.png

By the way, why the email address “stan@fakeemail.com” not be listed under the Departurel as "LGA:356985895"?

yingyinr_1-1661241405690.png

Best Regards

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @apmulhearn ,

You can create a calculated column as below in Table2 to get it:

Column = 
CONCATENATEX (
    FILTER (
        'Table1',
        'Table1'[DepartureID] = 'Table2'[Departurel]
            && 'Table1'[Status] = "Booked"
    ),
    'Table1'[EmailAddress],
    ";",
    'Table1'[EmailAddress],
    ASC
)

yingyinr_0-1661241142879.png

By the way, why the email address “stan@fakeemail.com” not be listed under the Departurel as "LGA:356985895"?

yingyinr_1-1661241405690.png

Best Regards

parry2k
Super User
Super User

@apmulhearn assuming Table2 has a relationship with Table1 on DepartureID column which will one to many relationship, one will be on Table2 side and many will be on Table1 side, add a new column in Table2 with the following expression:

 

Email Address = 
VAR __table = CALCULATETABLE ( RELATEDTABLE ( Table1 ), Table1[Status] = "Booked" )
RETURN

CONCATENATEX ( SUMMARIZE ( __table, [DepartureId], [Email] ),  [Email], ";" )

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@apmulhearn could you please clarify further what you are looking for? Not sure what the ask is.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Sure, I can try again.

Basically, I need to be able to lookup values in table 1 and have them populate a column in table 2. However, there will often be more than 1 match on table 1. I need all matching values from table 1 to populate in the column in table 2, separated by a semicolon.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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