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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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