将分组 /嵌套数据表转换为表格
I have been trying to covert tables that I get in the grouped format as in the picture to tabular form to make it pivotable. I have tried to use power query but not sure how to do it. I am not sure where to start and I appreciate your guidance as to where to start or how to make it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果要使用PowerQuery,假设这些是空格,则最好的选择可能是添加一些自定义列,以检查第一列中的前导空间数量以确定级别。例如,
然后做类似的事情,但是将不同的领先空间计入单独的列中,然后填充以填充一个表,
您可以选择将列拆分为3个空间,具体取决于凹痕是什么。 (0/3/6/9)
if you want to use powerquery, Assuming those are spaces, your best bet is probably to add some custom columns that check the number of leading spaces from column one to determine the level. For example,
then do something similar but with different leading space counts into separate columns, and then fill down to populate a table
You could alternately try to split the column on, lets say, 3 spaces, depending on what the indentions are. (0/3/6/9)