是否可以通过 Power Query 或 Power Pivot 从下表中获取
一个表格,其中类别位于其下每一行的单独列中?
我曾尝试使用一些索引列或 FIRSTNONBLANK 来做到这一点,但我惨遭失败。
最佳答案
另一种方法
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Custom" = Table.AddColumn(Source, "Category", each if [ID]=null then [Description] else null),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Description.1", each if [ID]<>null then [Description] else null),
#"Filled Down" = Table.FillDown(#"Added Custom1",{"Category"}),
#"Removed Columns" = Table.RemoveColumns(#"Filled Down",{"Description"}),
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each ([Description.1] <> null))
in #"Filtered Rows"
关于excel - 满足条件时,在不满足条件的情况下,在其下方的每一行显示当前行值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68577466/