Menu
CoddyTech

SUMX Works Row by Row

Part of the DAX with CALCULATE section of Coddy's Power BI journey. Lesson 12 of 24.

SUMX(Table, expression) works out the expression on each row, then adds the results.

Gross Sales = SUMX(Sales, Sales[Quantity] * Sales[UnitPrice])

Each row multiplies its own quantity and price. Nothing is stored.

Multiplying two SUMs is not the same: it multiplies totals.

challenge icon

Challenge

What would sales be at list price, before the member discount? Write Gross Sales: the sum of quantity times unit price, line by line. It is checked for each category.

bugsy Main icon

Start this challenge with Coddy's AI tutor

What is Bugsy?

All lessons in DAX with CALCULATE