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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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