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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
naifAhmedB
Helper II
Helper II

Dax for first value in the date/time

Hi everyone,

I am new to DAX.

 

I have a table for a store daily opening time. 

I want to create a DAX to show only the first open for each day.

in nov 16 the first opening was at 5:41 AM , nov 17 ( i want to find it ), nov 18 ..etc

Dax = find first value(open) filter each day .

i tried min but I get a single day while i want to see each day.

 

 

 de.PNGopen table.PNG

3 REPLIES 3
amitchandak
Super User
Super User

@naifAhmedB , Create a date column

Date = Table[Date/time].date

 

and try it with a measure like this in table visual
calculate(firstnonblank(Table[Date/time],blank()), allexcpet(Table,Table[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
speedramps
Super User
Super User

Please consider this solution and leave kudos.

Split the date/time column into 2 columns for Date and Time.
You can do this in the query, and then in modeller select hh.mm.ss formatting for the time.

Create a Dax measure    FirstTime = MIN(myfilename[time])

Create a report by Date for FirstTime

This will show the first time for each day.

It is best pratice to always split date/time into 2 columns for Date and Time. 

Thanks for your reply.

I did that but I see a very old date that doesn't exist in my date/time table

time.PNGtime2.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.