电源查询 - 在组合之前修改表

发布于 2025-02-08 00:53:32 字数 414 浏览 2 评论 0原文

在我的表(Point1)上,我要获得的,对于分组的每个表(点2),我将在每个表的开头插入新行(点3),并在列“ Metadata1”等于列中的值为原始行数2值(从0开始计数)。

链接到Excel文件: https://filebin.net/cnb4pia0vvkggggggggggggnggg97g

tmhdc.png“ rel =” nofollow noreferrer“>

On my table (point1) I am trying to get, that for each table of the grouped rows (point 2) I will have new row inserted (point 3) at the beginning of each table with the value in the column "Metadata1" equal to value form "Column2" for original row number 2 (starting counting from 0).

Link to excel file:
https://filebin.net/cnb4pia0vvkg937g

enter image description here

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

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

发布评论

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

评论(1

旧城烟雨 2025-02-15 00:53:32

很难知道您的需求中有多少是通用或特定的,但是

 TransformFirst = Table.TransformColumns(#"PriorStepName",{{"Count", each 
 #table(
      {"Column1","Column2","Metadata1"},
      {{_{0}[Column1],_{0}[Column2],_{2}[Column2]}}
 ) & _
 }}),
Together=Table.Combine(TransformFirst[Count])
in Together

修改了列 count 中的所有表,以包括一个额外的行,该行是row0/col1 row0/col2和row2/

col2然后将所有这些表组合到一个表中

”在此处输入图像说明”

Its hard to know how much of your requirement is generic or specific, but

 TransformFirst = Table.TransformColumns(#"PriorStepName",{{"Count", each 
 #table(
      {"Column1","Column2","Metadata1"},
      {{_{0}[Column1],_{0}[Column2],_{2}[Column2]}}
 ) & _
 }}),
Together=Table.Combine(TransformFirst[Count])
in Together

modifies all the tables in column Count to include an extra row that is made up up Row0/Col1 Row0/Col2 and Row2/Col2

It then combines all those tables into one table

enter image description here

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