SUMX
sum · row by row
SUMX goes through a table row by row, does a calculation on each row, then adds up the results.
On the New York row of the visual, in 2025:Customers[City] = "New York"YEAR( Sales[Date] ) = 2025
SUMX( Sales, Sales[Qty] * Sales[Price] )
| Sale ID | Qty | Price | Qty × Price | |
|---|---|---|---|---|
| V006 | 8 | 25,000 | ||
| V007 | 3 | 50,000 | ||
| V008 | 15 | 10,000 |
Three rows remain in Sales. SUMX will go through them, from top to bottom.