Arranging Data in a Query Table
问题 I'm trying to figure out a simple way (using PowerQuery) to convert this: into this: I've spent days trying to figure out a simple way to do it. Everything I've tried has failed. 回答1: You can use Group By on the Transform tab, group by project and define a aggregation for each of the segment columns (e.g. Sum). Then adjust the created code from List.Sum to List.RemoveNulls. Then add a column with nested tables from the segment columns, using Table.FromColumns. Remove the original segment