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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply

Append expanded records to existing table

Hello, 

 

Been really struggling to get this working, hope you can help 🙂

 

So I have a table pulled from an API, this table includes details such as company name, company id, email and an order ID. This table also includes a column that contains the detail of the order ID (such as product ordered, quanitity etc) this column is named 'OrderRows'. 

 

As you can see from the screenshot below inside the 'orderrows' column contains a record and within that record contains a record for each line item row. 

 

WillBatesHydro_0-1650622121550.png

 

As you can see from the formula below I have transformed all the records in the 'Orderrows' into one table. 

 

WillBatesHydro_0-1650622926543.png

 

 

What I need to do though is retain the information brought through in the first screenshot to each row of the second screenshot. (its the same query)

 

Any help at all? 🙂

 

Thank you 

 

Will

 

1 ACCEPTED SOLUTION

Worked it out - for anyone who is struggling; 

 

I inserted a custom column and used the below

Record.ToTable(Record.Combine(#"Removed Columns4"[orderRows]))

 

Ended up with my desired output;

WillBatesHydro_0-1650625126881.png

 

View solution in original post

1 REPLY 1

Worked it out - for anyone who is struggling; 

 

I inserted a custom column and used the below

Record.ToTable(Record.Combine(#"Removed Columns4"[orderRows]))

 

Ended up with my desired output;

WillBatesHydro_0-1650625126881.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors