Table.FillDown

语法

Table.FillDown(table as table, columns as list) as table

关于

从指定的 table 中返回一个表,其中前一个单元格的值会传播到指定的 columns 中下方值为 Null 的单元格。

示例 1

从表返回一个表,其中,列 [Place] 中的 NULL 值是使用这些值上方的值填充的。

使用情况

Table.FillDown(    Table.FromRecords({         [Place = 1, Name = "Bob"],        [Place = null, Name = "John"],        [Place = 2, Name = "Brad"],        [Place = 3, Name = "Mark"],        [Place = null, Name = "Tom"],        [Place = null, Name = "Adam"]     }),    { "Place" })

输出

Table.FromRecords({     [Place = 1, Name = "Bob"],    [Place = 1, Name = "John"],    [Place = 2, Name = "Brad"],    [Place = 3, Name = "Mark"],    [Place = 3, Name = "Tom"],    [Place = 3, Name = "Adam"] })

results matching ""

    No results matching ""