Cheat Sheets/Power BI/SUMMARIZECOLUMNS
DAX function

SUMMARIZECOLUMNSDAX function reference

Group and summarize (modern, faster).

Syntax

dax
SUMMARIZECOLUMNS(<groupBy_column1> [, …], [<filterTable1>] [, …], "<name1>", <expression1> [, …])

Examples

dax
SUMMARIZECOLUMNS(Region[Name], "Sales", SUM(Sales[Amount]))
A grouped table
dax
SUMMARIZECOLUMNS(
    Product[Category], 'Date'[Year],
    FILTER(ALL(Sales[Channel]), Sales[Channel] = "Online"),
    "Sales", SUM(Sales[Amount])
)
Category/Year sales for the Online channel only
dax
SUMMARIZECOLUMNS(
    Product[Category],
    "Sales", SUM(Sales[Amount]),
    "Margin %", DIVIDE(SUM(Sales[Profit]), SUM(Sales[Amount]))
)
Multiple measures grouped by Category — the shape a matrix visual generates under the hood

Common mistakes & gotchas

Related DAX functions

From Iterators & variables

← Back to the Power BI (DAX) cheat sheet