Cheat Sheets/Power BI/SUM
DAX function

SUMDAX function reference

Total a column.

Syntax

dax
SUM(<column>)

Examples

dax
SUM(Sales[Amount])
A number

SUM aggregates a physical column under the current filter context; wrapping in DIVIDE guards against a blank/zero denominator.

dax
DIVIDE(SUM(Sales[Profit]), SUM(Sales[Amount]))
Overall profit margin ratio
dax
CALCULATE(SUM(Sales[Amount]), Sales[Channel] = "Online")
Online-channel total, regardless of the channel slicer

Common mistakes & gotchas

Related DAX functions

From Aggregations

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet