0
0
Power BIbi_tool~10 mins

SUMX and iterators in Power BI - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table shows products with their unit prices and quantities sold.

CellValue
A1Product
B1Price
C1Quantity
A2Apple
B22
C25
A3Banana
B31
C310
A4Cherry
B43
C47
Formula Trace
SUMX(Table, Table[Price] * Table[Quantity])
Step 1: Table[Price] * Table[Quantity] for Apple
Step 2: Table[Price] * Table[Quantity] for Banana
Step 3: Table[Price] * Table[Quantity] for Cherry
Step 4: SUM of all row results: 10 + 10 + 21
Cell Reference Map
    A       B       C
1 Product  Price  Quantity
2 Apple      2       5
3 Banana     1      10
4 Cherry     3       7

Formula uses columns B and C for multiplication in each row.
The formula references Price (B2:B4) and Quantity (C2:C4) columns for each product row.
Result
    A       B       C       D
1 Product  Price  Quantity  Total
2 Apple      2       5       10
3 Banana     1      10       10
4 Cherry     3       7       21
5                         SUMX Result: 41
The Total column shows the multiplication per row. The final SUMX result is 41, the sum of all totals.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does SUMX do in this formula?
AIt sums Price and Quantity columns separately.
BIt multiplies Price and Quantity for each row and then sums the results.
CIt multiplies all Prices together and all Quantities together.
DIt returns the maximum Price multiplied by maximum Quantity.
Key Result
SUMX iterates over each row, evaluates an expression, then sums all results.