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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
giorgilomidze
Resolver I
Resolver I

First date from date column

I need to have total number of days after first operation. Thus I'm trying to use this formula 
datediff(firstdate([datecolumn]),lastdate([datecolumn]),days) but its not working. am i doing something wrong?

1 ACCEPTED SOLUTION
giorgilomidze
Resolver I
Resolver I

I Used date format and it resolved problem  (taking .date from date/time format)

DATEDIFF(FIRSTDATE([Datecolumn].[Date]),LASTDATE([Datecolumn].[Date]),DAY)

View solution in original post

3 REPLIES 3
giorgilomidze
Resolver I
Resolver I

I Used date format and it resolved problem  (taking .date from date/time format)

DATEDIFF(FIRSTDATE([Datecolumn].[Date]),LASTDATE([Datecolumn].[Date]),DAY)

theitguy
Helper I
Helper I

Have you tried DAY instead of days as well?

 

datediff(firstdate([datecolumn]),lastdate([datecolumn]),DAY) 

It is "Datediff" Formula Option.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors