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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
scee07
Resolver I
Resolver I

Sequence of calculations in DAX

Hi community,  

cannot find the answer to this simple question:

with the textbook example 

ListPriceRanking =
COUNTROWS (
    FILTER (
        VALUES ( 'Product'[List Price] ),
        'Product'[List Price] > EARLIER ( 'Product'[List Price] )
    )
) + 1

does the engine calculate in the sequence that is suggested: first inner loop with the inner row context.  Then calculate whatever is as filter context outside (which is obviously not visible here) . This is presumbably answered already. Please refer me to the link.

Best regards

Christian

1 ACCEPTED SOLUTION

For most functions/expressions, from inside out, from left to right, from top down. 

 

But CALCULATE is very different, it starts with all the argument and keep the first argument evaluated last. 

View solution in original post

4 REPLIES 4
scee07
Resolver I
Resolver I

Great, this is exactly what I wanted to know.

Best regards

 

Christian

scee07
Resolver I
Resolver I

The question is: what is the real  sequence of calculations in the engine? Always first filter context, then inner row context. The other way round, or some parallelization? Or depending on some criteria?

For most functions/expressions, from inside out, from left to right, from top down. 

 

But CALCULATE is very different, it starts with all the argument and keep the first argument evaluated last. 

FreemanZ
Super User
Super User

Hi Christian @scee07 

What is the question?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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