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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
julhelp
Helper I
Helper I

Automatic column header of the output table (records in records)

hi,

 

I managed to output the headings of the columns variably for the first time. The Problem now is, that in these records there are another records.

 

Is there also a possibilityif in the output table there are still several columns with records to output them also variably? Or do i have to output them step by step?

Maybe I can handle it with a sort of loop?

julhelp_1-1643805876927.png

julhelp_2-1643805890595.png

 

thanks in advance

1 REPLY 1
Anonymous
Not applicable

I'd normally handle this by first adding a step to get the column names that you need:

 

ColumnNames = Table.ColumnNames(TableOrPriorStepName)

 

This gives you your list of ColumnNames. Once you are ready to replace your ColumnNames, you can use List.Zip with Table.ReplaceColumnNames:

 

ReplaceColumns = let ReplaceThese = Table.ColumnNames(PriorStepOrTableName) in Table.ReplaceColumnNames(PriorStepOrTableName, each List.Zip({ReplaceThese, ColumnNames}))

 

--Nate

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors