Home / Questions / Explain the difference between SUM() and SUMX().
Explanatory Question

Explain the difference between SUM() and SUMX().

👁 0 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

SUM() SUMX()
Adds values from a column. Evaluates an expression row by row.
Simple aggregation. Iterator function.
Total Revenue =
SUMX(
    Sales,
    Sales[Quantity] * Sales[UnitPrice]
)

SUMX is commonly used for business calculations.