Table.Group Function in Power Query M
The Table.Group function groups rows in a table based on one or more columns and applies aggregations to each group. Think of it as the Power Query equivalent of a pivot table. You tell it which column(s) to group by, and what calculations to perform on each group (sum, count, average, etc.). It’s one of …