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
phial-2
Frequent Visitor

Adding a custom column to all tables in a structured column

I have a structured column of tables and I want to add a custom column to each of the tables in this structured column.

 

The custom column would be simple if applied to each table (just the max value of another column) due to how I have used Group By to create the structured column, and I can't think how I would do this after expanding the tables... but I may be thinking about this wrong as I am new to thinking in Power Query.

 

Is adding a custom column to every table in a structured column doable? Is it advisable?

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

add a new step after your group-by step

NewStep=Table.Combine(Table.TransformColumns(YourGroupByStepName,{"TableColumnName",each Table.AddColumn(_,"MaxValue",(x)=>List.Max([ColumnName]))})[TableColumnName])

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

add a new step after your group-by step

NewStep=Table.Combine(Table.TransformColumns(YourGroupByStepName,{"TableColumnName",each Table.AddColumn(_,"MaxValue",(x)=>List.Max([ColumnName]))})[TableColumnName])

Brilliant, thanks!

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.