Oharra
Orrialde honetara sartzeak baimena behar du. Saioa hasteko edo direktorioak aldatzen saia zaitezke.
Orrialde honetara sartzeak baimena behar du. Direktorioak aldatzen saia zaitezke.
Sintaxis
Table.IsDistinct(table as table, optional comparisonCriteria as any) as logical
Acerca de
Indica si table contiene solo filas distintas (sin duplicados). Devuelve true si las filas son diferentes; de lo contrario, devuelve false. Un parámetro opcional, comparisonCriteria, especifica en qué columnas de la tabla se comprueba si hay duplicación. Si no se especifica comparisonCriteria, se comprueban todas las columnas.
Ejemplo 1
Determinar si la tabla es distinta.
Uso
Table.IsDistinct(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 4, Name = "Ringo", Phone = "232-1550"]
})
)
Salida
true
Ejemplo 2
Determinar si la tabla es distinta en la columna.
Uso
Table.IsDistinct(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 5, Name = "Bob", Phone = "232-1550"]
}),
"Name"
)
Salida
false