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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
extri13
Helper I
Helper I

[Basic Question] EARLIER/EARLIEST refers to an earlier row context which doesn't exist

Dear BI users,

 

I can not see EARLIER function working rightly (like below captured image).

Could you please tell me my wrong on the use of EARLIER?

 

Actually, I am creating MoM measures following below article.

However, I found everytime the error message whenever any use of EARLIER function.

 

So, I just made a very simple measure and it also show the same error message

even the simple measure is just a example of an article

 

Measure and error of EARLIER functionMeasure and error of EARLIER function

 

Sincerely,

 

Lee, Hong Gwoo

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@extri13

 

As BhaveshPatel said, EARLIER and EARLIEST are usually used in calculated column. I’d like to recommend this article to you. It should be able to make you understand them more clearly.

 

And EARLIER can also be used in DAX measure in some situations. You can take a look at this article.

 

Best Regards,

Herbert

View solution in original post

3 REPLIES 3
v-haibl-msft
Microsoft Employee
Microsoft Employee

@extri13

 

As BhaveshPatel said, EARLIER and EARLIEST are usually used in calculated column. I’d like to recommend this article to you. It should be able to make you understand them more clearly.

 

And EARLIER can also be used in DAX measure in some situations. You can take a look at this article.

 

Best Regards,

Herbert

Thank you Herbert,

 

Yes it can be used in DAX Measures too but In that specific case, It was supposed to be used for calculated column.

 

Regards

Bhavesh

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.
BhaveshPatel
Community Champion
Community Champion

Hi

 

It seems to me that instead of creating a calculated column, you are creating a measure. 

 

To Create a Calculated Column, 

 

Go to the Table and Right Click, Select New Column and Put the same syntax in there.

 

This will give you the right results.

 

Regards,

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.