I've a Power BI published dataset and using DAX I'm trying to calculate difference(Total Time Taken) between Start datetime and End datetime for each task and then Average Total Time Taken in Hours for all tasks. I've tried few methods and all of them have failed. I don't have the option to edit queries or Transform data as its a published dataset that I've connected to, all i can do is create measures that gives the time difference in Hours even it is over 24 hours and then do the average like in the example below;
Tasks Start DateTime End DateTime Total Time Taken
1 10/08/2020 10:30:00 11/08/2020 10:30:00 24:00:00
2 10/08/2020 11:30:00 12/08/2020 10:30:00 47:00:00
3 12/08/2020 10:30:00 14/08/2020 10:30:00 48:00:00
4 10/08/2020 10:30:00 16/08/2020 10:30:00 144:00:00
Average for all Tasks 65:45:00
So need your guys help in cracking a solution. Thanks in advance.