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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AW1976NOVA
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
amitchandak
Super User
Super User

@AW1976NOVA , Try measure like

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

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@AW1976NOVA , Try measure like

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.