Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
daanodinot
Frequent Visitor

Understanding the basic concepts

I'm just trying to grasp the basic concepts, but - I have to say - the amount of conflicting information I see makes it really, really confusing.

So let me get this straight about the SUM function:

  1. Does it operate in a row context or filter context?
  2. Is it an iterator or aggregator function?

Thanks in advance!

4 REPLIES 4
VKB
Frequent Visitor

🙂 It really frustrates anyone at the beginning! 
In the background evaluation process, DAX treats them as one and the same.
But, for the users, the rule of thumb is:
SUM is an aggregator function and ignores Row context! 
SUMX is there for iterations (simply means row context).

PabloDeheza
Solution Sage
Solution Sage

Hi there!

1. It operates in a filter context when used in a measure.

2. The SUM funcion is an aggregator, SUMX and every other "X" function are iterators.

Thank you! Perhaps I phrased point one incorrectly. What I meant to say is: does it create (or work with) a row context or filter context?

Here is a quote from an article that adds to my confusion:

Another common mistake of DAX newbies is thinking that SUM and SUMX are two different functions. This is not the case. SUM is nothing but a simplified version of SUMX: we call it syntax sugar. SUM ( Sales[Quantity] ) is internally translated into SUMX ( Sales, Sales[Quantity] ). Therefore, a regular aggregator like SUM, AVERAGE, MIN or MAX behaves the same way an iterator does.

This is the reason why a calculated column computing SUM ( Sales[Quantity] ) produces the grand total of Sales[Quantity] on each row. […]

[…] The row context does not filter, it iterates.

This definitely implies that SUM creates (works with) a row context and is an iterator.

I suggest you watch this videos from SQLBI as I believe there is no better content out there.
Hope this clarify this concepts, they are not easy to understand at first.
The Whiteboard Playlist 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.