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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Darwell
Frequent Visitor

Calculate time difference minutes or seconds

Screenshot 2024-05-14 at 11.33.19.png 

So I have these two columns that are formatted as date / time.

 

When I use the datediff formule, it works for day and hour, but when I change to minute or second I get this message.

Screenshot 2024-05-14 at 11.39.08.png

I am connecting via directquery.

 

Does anybody know are way i can get this information?

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

subtract the two values, multiply the result by 1440 or 86400

View solution in original post

v-xuxinyi-msft
Community Support
Community Support

Hi @Darwell 

 

Thanks for the reply from @lbendlin .

 

The error is saying that it is unable to convert a DAX query to a query against a data source. There are several possible reasons for this: 

 

  • Complex data models
  • Complex DAX used in measure or calculated columns
  • Complex transformations created in the Power Query editor

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xuxinyi-msft
Community Support
Community Support

Hi @Darwell 

 

Thanks for the reply from @lbendlin .

 

The error is saying that it is unable to convert a DAX query to a query against a data source. There are several possible reasons for this: 

 

  • Complex data models
  • Complex DAX used in measure or calculated columns
  • Complex transformations created in the Power Query editor

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

subtract the two values, multiply the result by 1440 or 86400

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.