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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.