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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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