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.ToColumns

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

 
 
 
Fonction Table.AddColumns

Utilité :   Ajoute une nouvelle colonne à une table, avec des valeurs calculées. Syntaxe : Table.AddColumn(table as table, newColumnName...

 
 
 
Fonction Table.ToRecords

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

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page