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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

How to create a new LIST by concatenating two LISTS in the same position?

I have two columns, each containing a List, both created using delimiters on a single cell of text.

 

eventTypeeventBy
ListList

 

Each List contains a string corresponding to the position in the List (e.g. eventType {deleted, added, renamed} and eventBy {1/1/23, 2/12/22, 10/12/22}). There can be many items in lists.

 

How can I concatenate these into a new List, with the same number of items? e.g. {"deleted 1/1/23", "added 2/12/22", "renamed 10/12/22} ?

 

The closest I seem to have gotten is this

List.Combine(List.Transform([eventType], (L1) => List.Transform([eventBy], (L2) => L1 & L2))) 

which concatenates but generates new items (I don't understand what the => is doing here)

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi,

 

= List.Transform(List.Zip({List1,List2}), each _{0} & " " & Text.From(_{1}))

Stéphane 

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thank you, this is perfect!

slorin
Super User
Super User

Hi,

 

= List.Transform(List.Zip({List1,List2}), each _{0} & " " & Text.From(_{1}))

Stéphane 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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