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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Selecting First Date and Time

I have a column of datetime data and I am trying to select the first date after filtering the table. I am using the following calculated column formula:

 

First Date = CALCULATE(FIRSTDATE('Table'[Date].[Date]), FILTER('Table', 'Table'[TestID] = 'Table2'[TestID]))
 
The data in the Date column is Date/Time with the format 'M/D/Y H:M:S'
 
This works for selecting the first date, but seems to be ignoring the time data in the Date column. It returns the correct day, but sets the time to 12:00:00. Is there an equivelent to FIRSTDATE() that will return the date and  time?
 
 
1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

Can  you not just use MIN?

 

 CALCULATE(MIN('Table'[Date].[Date]), FILTER('Table', 'Table'[TestID] = 'Table2'[TestID]))

 

View solution in original post

2 REPLIES 2
Cmcmahan
Resident Rockstar
Resident Rockstar

Can  you not just use MIN?

 

 CALCULATE(MIN('Table'[Date].[Date]), FILTER('Table', 'Table'[TestID] = 'Table2'[TestID]))

 

Anonymous
Not applicable

this did the trick, thank you!

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.