Table.Partition

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Partitions the table into a list of groups number of tables, based on the value of the column of each row and a hash function. The hash function is applied to the value of the column of a row to obtain a hash value for the row. The hash value modulo groups determines in which of the returned tables the row will be placed.

Table.Partition ( table as table, column as text, groups as number, hash as function) as list  

ArgumentDescription
tableThe Table to modify.
columnThe column to apply hash to.
groupsThe number of groups to make.
hashThe hash function to apply.
Table.Partition(Table.FromRecords({[A=1], [A=2], [A=3], [A=4], [A=5], [A=6]}),"A", 2, each _)  
  
equals Table.FromRecords({[A=2], [A=4], [A=6]})  

Show: