DAX Function Guide

EARLIER
Empty image or helper icon

Sam McKay

CEO & Founder

How does the EARLIER work?
The EARLIER function (DAX) returns the current value of the specified column in an outer evaluation pass of the mentioned column.
EARLIER Formula Syntax

EARLIER(
     <column>, <number>
)

How do you use the EARLIER?

EARLIER(
     <column>, <number>
)

Related Blog Posts

Loading

Considerations when using the EARLIER?

EARLIER succeeds if there is a row context prior to the beginning of the table scan. Otherwise it returns an error.

The performance of EARLIER might be slow because it theoretically, it might have to perform a number of operations that is close to the total number of rows (in the column) times the same number (depending on the syntax of the expression). For example if you have 10 rows in the column, approximately a 100 operations could be required; if you have 100 rows then close to 10,000 operations might be performed.

Related Video Tutorials

Loading

Formula examples using the EARLIER

=EARLIER(Sniff[RatID])

EARLIER(Sniff[SessionID]

EARLIER(Sniff[SessionID]

Related Courses

Loading