将分组 /嵌套数据表转换为表格

发布于 2025-02-02 12:41:39 字数 261 浏览 2 评论 0原文

我一直在试图掩盖我以图片形式中的分组格式获得的表格,以使其变得可行。我试图使用电源查询,但不确定该怎么做。我不确定从哪里开始,我感谢您的指导从哪里开始或如何使其

“在此处输入图像说明”

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

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初心 2025-02-09 12:41:39

如果要使用PowerQuery,假设这些是空格,则最好的选择可能是添加一些自定义列,以检查第一列中的前导空间数量以确定级别。例如,

= if Text.StartsWith([Column1], "     ") then Text.Trim([Column1]) else null 

然后做类似的事情,但是将不同的领先空间计入单独的列中,然后填充以填充一个表,

您可以选择将列拆分为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,

= if Text.StartsWith([Column1], "     ") then Text.Trim([Column1]) else null 

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文