Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. DP-600/
  4. DP-600 Learning Path/
  5. Study FAQs/
  6. When should I use SUMX instead of SUM in a Power BI measure?

Study FAQ

When should I use SUMX instead of SUM in a Power BI measure?

Exam · DP-600Knowledge domain · Implement and manage semantic models (25–30%)Updated Nov 19, 2026
Also asked as 2
  • When does a DAX calculation require an iterator rather than a simple sum?
  • How do I choose SUM or SUMX for row-dependent revenue?

Answer

Use SUM when a validated column already contains the additive value you need. Use SUMX when the required expression depends on values from each row of a table and must then be aggregated.

For an order-line Sales table with Quantity and NetUnitPrice columns:

Extended Revenue =
SUMX ( Sales, Sales[Quantity] * Sales[NetUnitPrice] )

Each line's quantity is multiplied by its own price before summing. Multiplying total quantity by total price doesn't express that business rule. If an accurate line-level Revenue column already exists, SUM ( Sales[Revenue] ) is simpler.

Choose the iterator's table at the intended business grain. Iterating every transaction is different from iterating customers or months, even if the expressions look similar. Filter the input deliberately and avoid generating an unnecessarily large intermediate table.

Check a single row, multiple prices, filters, empty data, and totals against known arithmetic. Then measure performance with the actual visual: the presence of an iterator alone doesn't identify a bottleneck.

SUMX reference.

Full explanation

DP-600: Advanced DAX Patterns for Enterprise Semantic Models

Study guide · DP-600

Read the full explanation →
← Back to DP-600 FAQsView learning path →

Related questions

How should I model order date and ship date in a Power BI semantic model? →When should I use bidirectional filtering in a Power BI semantic model? →How do I choose between calculation groups, dynamic format strings, and field parameters? →Why do Power BI calculation groups require explicit measures? →How should I validate multiple calculation groups in the same Power BI model? →What should I validate before using a Power BI composite model? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.