- let
- Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
- #"Filled Down1" = Table.FillDown(Source,{"Column1"}),
- #"Grouped Rows" = Table.Group(#"Filled Down1", {"Column1"},
- {{"Count",(t)=> Table.Transpose(
- Table.Combine(List.Transform({0..3},each Table.Transpose(Table.RemoveColumns(Table.Range(t, _*2,2),"Column1") ) ) )) }}),
- #"Expanded Count" = Table.PromoteHeaders(
- Table.ExpandTableColumn(
- #"Grouped Rows", "Count",
- {"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12"}, {"Column1.1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12"}
- )),
- #"Renamed Columns" = Table.RenameColumns(#"Expanded Count",{{"0001", "No"}}),
- #"Filtered Rows" = Table.SelectRows(#"Renamed Columns", each ([一次接收] = 100))
- in
- #"Filtered Rows"
复制代码 |