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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TanLC
Frequent Visitor

LOOKUP multiple rows of data into one single row.

Hi, in below table, there are multiple rows / layers of Product Name and to be consolidate according to the main Product Name.

Eg: 2N123A with the Date of 12/12/2024 02:11:58 PM to be lookup to 123A as they can be linked by 1N123A, 13/12/2024 04:15:31 PM and so on.

I've tried using the method of LOOKUP and created quite some columns manually.

Any other alternate method to linked the columns automatically? 

 

Before:

Product NameProduction DateName 1Date 1
123A15/12/2024 03:17:25 AM1N123A13/12/2024 04:15:31 PM
1N123A13/12/2024 04:15:31 PM2N123A12/12/2024 02:11:58 PM
2N123A12/12/2024 02:11:58 PM3N123A10/12/2024 09:00:05 AM
789C03/01/2025 05:08:07 AM1N789C31/12/2024 10:55:09 AM
1N789C31/12/2024 10:55:09 AM2N789C31/12/2024 01:05:08 AM
2N789C31/12/2024 01:05:08 AM3N789C29/12/2024 09:10:58 PM
3N789C29/12/2024 09:10:58 PMB030A28/12/2024 11:12:24 AM

 

After:

Product NameProduction DateName 1Date 1Name 2Date 2Name 3Date 3Name 4Date 4
123A15/12/2024 03:17:25 AM1N123A13/12/2024 04:15:31 PM2N123A12/12/2024 02:11:58 PM3N123A10/12/2024 09:00:05 AM  
789C03/01/2025 05:08:07 AM1N789C31/12/2024 10:55:09 AM2N789C31/12/2024 01:05:08 AM3N789C29/12/2024 09:10:58 PMB030A28/12/2024 11:12:24 AM

 

Thank you.

 

Regards,

TanLC

3 REPLIES 3
ThxAlot
Super User
Super User

Transform your original dataset correctly, then drag-and-drop is enough.

ThxAlot_0-1736769131438.png

ThxAlot_1-1736769173370.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



TanLC
Frequent Visitor

Hi @ThxAlot , thanks for the solutions. Possible to telI how to create the Steps for Prod, Sub & Upstream in Power Query?

 

Regards,

TanLC

123abc
Community Champion
Community Champion

plz can u sahre the sample pbix file.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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