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
Pick
Helper II
Helper II

DATEDIFF not working

Hi,

 

  Why is DATEDIFF not working below?

 

datediff not working.JPG

2 ACCEPTED SOLUTIONS
smpa01
Super User
Super User

@Pick please try this

DATEDIFF('Table'[Start],'Table'[End],SECOND)
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

tkirilov
Resolver I
Resolver I

Hi @Pick ,

You'd need to remove .[Date] from both dates, as well as have Start Date first, End date second, unless you'd like to have your answers (seconds) in negative numbers.

 

DATEDIFF(<start_date>, <end_date>, <interval>) 

View solution in original post

3 REPLIES 3
tkirilov
Resolver I
Resolver I

Hi @Pick ,

You'd need to remove .[Date] from both dates, as well as have Start Date first, End date second, unless you'd like to have your answers (seconds) in negative numbers.

 

DATEDIFF(<start_date>, <end_date>, <interval>) 

smpa01
Super User
Super User

@Pick please try this

DATEDIFF('Table'[Start],'Table'[End],SECOND)
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
amitchandak
Super User
Super User

Remove .[date] from both places .

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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