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
sumsar10171
Frequent Visitor

Transform a list of records into columns

Hi,

 

I have a challenge I can't seem to find a way around.

 

I have a table of contacts, with an email and a list of records:

EmailFields
John@example.comList
Peter@example.comList

 

Each record is strucutered like so:

NameValue
Address221B Baker St., London
Occupation
Doctor
Age40

 

 

What i am trying to do is end with a table like so:

EmailAddressOccupationAge
John@example.com221B Baker St., LondonDoctor40

 

The fields are completly dynamic, so i can't "Hardcode" the values I'm looking for.

 

sumsar10171_1-1663664764827.png

sumsar10171_2-1663664805911.png

 

Let me know if any additional information would help anwser my question. 

 

3 REPLIES 3
wdx223_Daniel
Super User
Super User

=Table.Combine(Table.ToList(PreviousStepName,each Table.FromRecords({[Email=_{0}]&Record.Combine(_{1})}))

Anonymous
Not applicable

Hi @sumsar10171 ,

 

I tried to reproduced it. Here's my solution.

vstephenmsft_0-1663728824908.png

1.Expand to New Rows

vstephenmsft_1-1663728843691.png

vstephenmsft_3-1663728889338.png

 

2.Expand again. Once expanded, right-click on all selected columns to fill up and down.

vstephenmsft_2-1663728862108.png

vstephenmsft_5-1663728944026.png

vstephenmsft_6-1663729012627.png

3.Remove duplicates

vstephenmsft_7-1663729036194.png

vstephenmsft_8-1663729053883.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi Stephen,

 

I really appriacte you taking the time to write this anwser.

 

I might have communicated a part of the problem poorly.

 

 Each record on the list looks like so

sumsar10171_0-1663737813032.png

With the kind being the name of the field, and what should be made to the column name.

And value being the value for that field.

 

In the example you provided, a single record contained all the information.

sumsar10171_1-1663737880560.png

 

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.