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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kendall
Helper I
Helper I

<=EARLIER within a FILTER function

Hello, 

 

What would it mean to write <=EARLIER within a FILTER function? For example, the argument in this is: FILTER('Data Set X','Data Set X'[Index]<=EARLIER('Data Set X'[Index]))

 

Would this mean to do something earlier tha a given date in the data set?Screenshot (17).png

Thanks, Kendall

1 REPLY 1
AlexisOlson
Super User
Super User

EARLIER returns the earlier row context.

https://www.sqlbi.com/tv/earlier-earliest-dax-guide/

 

The DAX expression in your screenshot appears to be a calculated column and EARLIER allows you to reference the index value in that row of the table rather than the index value inside the FILTER iterator.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors