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 IDQtyPriceQty × Price
V006825,000
V007350,000
V0081510,000
Three rows remain in Sales. SUMX will go through them, from top to bottom.
See also: SUM, AVERAGEX