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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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

Anonymous
Not applicable

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
Anonymous
Not applicable

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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