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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Select the first value by date

Hello!

 

How can I via a measure get the oldest value by date in a table like this?

 

anthon_0-1621414640495.png

 

Tried FIRSTDATE, LASTEDATE and EARLIEST but it returns first 2021-01-01.

 

Kind Regards,

Anthon

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

The type of your column is Date/time, however, the type of argument that FIRSTDATE() accepts is Date.

FYI:

https://dax.guide/firstdate/

https://dax.guide/earliest/

 

Besides, you can use the function MIN() mentioned by Jihwan_Kim. 

v-xiaotang_0-1621564921651.png

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

It is quite difficult for me to understand the cause of having the above result without seeing your data model.

Please try to use MIN function in your measure.

Or, please share your sample pbix file's link here, then I can try to look into it to come up with a more accurate measure.

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.