Table.Distinct

Table.Distinct(table as table, optional equationCriteria as any) as table

从表 table 中删除重复的行。 可选参数 equationCriteria 指定对表中的哪些列进行测试以确定是否具有重复项。如果未指定 equationCriteria,则测试所有列。

示例:

从表中删除重复的行。

使用情况:

Table.Distinct(Table.FromRecords({[a = "A", b = "a"], [a = "B", b = "b"], [a = "A", b = "a"]}))

输出:
Table.FromRecords({[a = "A", b = "a"],
    [a = "B", b = "b"]}, {
    "a",
    "b"
})
示例:

从表 ({[a = "A", b = "a"], [a = "B", b = "a"], [a = "A", b = "b"]}) 的列 [b] 中删除重复的行。

使用情况:
Table.Distinct(Table.FromRecords({[a = "A", b = "a"], [a = "B", b = "a"], [a = "A", b = "b"]}), "b")
输出:
Table.FromRecords({[a = "A", b = "a"],
    [a = "A", b = "b"]}, {
    "a",
    "b"
})

results matching ""

    No results matching ""