Cheat Sheets/Power Apps/GroupBy
Power Fx function

GroupByPower Fx function reference

Group rows by columns.

Syntax

powerfx
GroupBy( Table, Column1 [, Column2, ... ], GroupColumnName )

Examples

powerfx
GroupBy(Sales, "Region", "Rows")
Grouped table
powerfx
GroupBy(Sales, "Region", "ByRegion")
powerfx
AddColumns(GroupBy(Orders, "CustomerID", "CustomerOrders"), "OrderCount", CountRows(CustomerOrders))

Common mistakes & gotchas

Related Power Fx functions

From Table shaping

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet