top of page

Fonction Table.Partition

  • contact487947
  • 23 mai
  • 1 min de lecture

Utilité : Partitionne une table en plusieurs tables selon un critère défini.


Syntaxe :


Table.Partition(table as table, partitionFunction as function, numberOfPartitions as number, optional columns as nullable list) as list

Cette fonction divise une table en un nombre défini de partitions en fonction d'une fonction de partition. Chaque partition est renvoyée sous forme de table.


Entrée :


  • table : la table à partitionner.

  • partitionFunction : fonction définissant la partition.

  • numberOfPartitions : nombre de partitions à créer.


Sortie :


  • Une liste de tables correspondant aux partitions.


Exemple :


Table.Partition(Table1, each Number.Mod([ID], 3), 3)

Cela divise « Table1 » en 3 partitions en fonction de la valeur de la colonne « ID ».

Posts récents

Voir tout
Fonction Table.ToRecords

Utilité :   Convertit une table en une liste de records. Syntaxe : Table.ToRecords(table as table) as list La fonction « Table.ToRecords...

 
 
 
Fonction Table.ToRows

Utilité :   Convertit une table en une liste de lignes sous forme de listes. Syntaxe : Table.ToRows(table as table) as list La fonction...

 
 
 
Fonction Table.CombineColumns

Utilité :   Combine plusieurs colonnes en une seule, avec un séparateur. Syntaxe : Table.CombineColumns(table as table, sourceColumns...

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page