我坚持动态扩展列,遵循我在这个平台中创建的这个趋势(参见:How To Effectively Dense Rank Groups in a Table Using Powerquery )。
现在,打算动态地扩展列,因为在现实生活中,有些数据集有大量的列,并手动输入列名,这需要时间和无聊来处理其他列名。其次,如果我的数据集通过api或列名的更改而发生变化,那么我会遇到error.how,我能处理这个挑战吗?
谢谢。
发布于 2022-09-13 00:01:51
如果要展开的列名为自定义,并且其中有一组表,则可以在下面展开该列中的所有列。
ColumnsToExpand = List.Distinct(List.Combine(List.Transform(Table.Column(#"PriorStepNameGoesHere", "Custom"), each if _ is table then Table.ColumnNames(_) else {}))),
#"ExpandedThem" = Table.ExpandTableColumn(#"PriorStepNameGoesHere", "Custom",ColumnsToExpand ,ColumnsToExpand )https://stackoverflow.com/questions/73696139
复制相似问题