What does the SUMX function do in Power BI?
SUMX goes row by row over a table, calculates an expression for each row, then adds all those results together.
Why do we call SUMX an iterator function?
Because it looks at each row one by one and performs a calculation before summing up the results.
Write a simple example of SUMX to calculate total sales where each row has Quantity and Price.
Total Sales = SUMX(Sales, Sales[Quantity] * Sales[Price])
What is the difference between SUM and SUMX?
SUM adds values in one column directly. SUMX calculates an expression for each row first, then adds those results.
Can SUMX be used with any table or only with the original data table?
SUMX can be used with any table or table expression, including filtered or calculated tables.
What does SUMX do?
SUMX iterates row by row, calculates an expression, then sums those results.
Which of these is a correct use of SUMX?
Option D calculates total sales by multiplying quantity and price for each row, then sums.
What type of function is SUMX?
SUMX is an iterator because it processes each row individually.
Which is true about SUMX compared to SUM?
SUMX calculates expressions row by row, while SUM just adds column values.
Can SUMX be used on a filtered table?
SUMX works on any table or table expression, including filtered tables.
Explain in your own words how SUMX works and why it is called an iterator.
Describe a real-life example where using SUMX is better than using SUM.