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
Raj12
Helper III
Helper III

Fetch multiple rows data from another table based on matching ID's

I have two spaerate tables that can't be linked together directly.

Table 1 has User with multiple ID's and Table 2 has unique users. I need to create new calculated column in table 2 for matching user with all conversation ID from table 1, added in a single row 

 

Table 1   Table2 
userConversation ID  userNew Calculated Column
0899-12/01/2024   12cd  0899-12/01/2024   12cd; 155d ;114f
0899-12/01/2024   155d  0123-11/02/2024   233d; 122d
0899-12/01/2024   114f  1422-18/02/2024   121o
0123-11/02/2024   233d    
0123-11/02/2024   122d    
1422-18/02/2024   121o    

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Raj12 

 

Try this:

new calculated column = 
VAR __tbl =
    FILTER ( table1, table1[user] = EARLIER ( table2[user] ) )
RETURN
    CONCATENATEX ( __tbl, [Conversation ID], ";" )

danextian_0-1712920172988.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @Raj12 

 

Try this:

new calculated column = 
VAR __tbl =
    FILTER ( table1, table1[user] = EARLIER ( table2[user] ) )
RETURN
    CONCATENATEX ( __tbl, [Conversation ID], ";" )

danextian_0-1712920172988.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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