cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

How to find the earliest date (or min date, or first date)

Hi,

 

I am trying to create a measure using DAX that will return the earliest date of the field [Paid Date].  The field [Paid Date] is in the table 'Claims_RawData'.

 

I have tried using several different combinations without any luck:

1) min('Claims_RawData'[Paid Date])

2) calculate(min('Claims_RawData'[Paid Date]))

 

I am not sure why this is not working.  I would like to create a simple card visual, drop my created measure in the card visual and have it return the earliest date available in the field [Paid Date].

 

Can you please assist?

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@AW1976NOVA , Try measure like

minX(allselected('Claims_RawData'),'Claims_RawData'[Paid Date])

or
minX(all('Claims_RawData'),'Claims_RawData'[Paid Date])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
Super User IV
Super User IV

@AW1976NOVA , Try measure like

minX(allselected('Claims_RawData'),'Claims_RawData'[Paid Date])

or
minX(all('Claims_RawData'),'Claims_RawData'[Paid Date])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors