Forum Discussion

Deaviouspeanut's avatar
Deaviouspeanut
Regular Visitor
2 years ago
Solved

Wait Time Calculation

I'm trying to work out wait times and be able to work out average wait times and Graph   I have the table set up with Arrival time and Consultation time see below   I have created a custom ...
  • halfglassdarkly's avatar
    2 years ago

    Oh OK, DATEDIFF is a DAX function used in PowerBI. You're trying to add a 'custom column' in PowerQuery not a 'calculated column' in PowerBI itself. The equivalent function to calculate duration in minutes between date/time in PowerQuery would be Duration.TotalMinutes


    See the solution proposed here: https://forum.enterprisedna.co/t/return-difference-of-two-dates-in-minutes/15174


    Alternatively if your dataset isn't huge then adding this as a calculated column to your table in PowerBI using DATEDIFF is still an option.