cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mous007
Helper IV
Helper IV

Time between two dates and average time to complete a task

Hello everyone, 

 

I hope you are all safe an sound/

I need some assistance with a time calculation.

So i have three columns: a tracking number for each task and a start and last update dates columns as you can see on my extract.

I hace tried a couple measure using dateiff but i always end up either with the wrong time or an error on my calculated columns and measures.

tracking #date of creationdate of update
100019/16/2019 00:009/26/2019 00:00
100029/16/2019 00:009/20/2019 00:00
100039/16/2019 00:0011/1/2019 00:00
100049/16/2019 00:009/30/2019 00:00
100059/16/2019 00:0010/7/2019 00:00
100069/16/2019 00:0010/10/2019 00:00
100079/18/2019 00:0011/1/2019 00:00
100089/18/2019 00:0010/10/2019 00:00
100099/19/2019 00:0011/11/2019 00:00
100109/19/2019 00:009/27/2019 00:00
100119/19/2019 00:009/27/2019 00:00
100129/19/2019 00:0010/7/2019 00:00
100139/19/2019 00:009/19/2019 00:00
100149/20/2019 00:009/23/2019 00:00
100159/20/2019 00:009/20/2019 00:00
100169/20/2019 00:0011/22/2019 00:00
100179/20/2019 00:0011/1/2019 00:00
100189/23/2019 00:0011/6/2019 00:00
100199/23/2019 00:0010/7/2019 00:00
100209/23/2019 00:009/23/2019 00:00
100219/23/2019 00:0010/10/2019 00:00
100229/24/2019 00:0010/23/2019 00:00
100239/24/2019 00:0012/9/2019 00:00
100249/24/2019 00:0010/17/2019 00:00
100259/24/2019 00:009/24/2019 00:00
100269/25/2019 00:009/25/2019 00:00
100279/26/2019 00:0010/22/2019 00:00
100299/26/2019 00:009/26/2019 00:00
100309/26/2019 00:0011/19/2019 00:00
100319/26/2019 00:009/26/2019 00:00
100349/26/2019 00:0010/11/2019 00:00
100359/26/2019 00:009/30/2019 00:00
100379/27/2019 00:0010/15/2019 00:00
100389/27/2019 00:0010/11/2019 00:00
100399/27/2019 00:0010/14/2019 00:00
100409/30/2019 00:009/30/2019 00:00
100419/30/2019 00:0011/1/2019 00:00
100439/30/2019 00:0010/7/2019 00:00
100449/30/2019 00:0010/7/2019 00:00
100459/30/2019 00:0010/7/2019 00:00
100469/30/2019 00:0010/7/2019 00:00
100479/30/2019 00:0012/5/2019 00:00
100489/30/2019 00:0010/1/2019 00:00
1004910/1/2019 00:0010/1/2019 00:00
1005010/1/2019 00:0010/1/2019 00:00
1005110/1/2019 00:0010/1/2019 00:00
1005210/1/2019 00:0011/14/2019 00:00
1005310/2/2019 00:0010/7/2019 00:00
1005410/2/2019 00:0010/14/2019 00:00

 

I would like to show on y report two different calculations using the following logic:

  1. A column or measure to display the time taken to finish a task (days between start and last update date)
  2. The average time it takes to complete a task in general (i just need an average estimation although i know there will be outliers to distort the average) and i think the previous column or measure would help in this calculation.

if someone can really help me with this i would really appreciate it.

 

Thanks in advance.

2 ACCEPTED SOLUTIONS
mwegener
Super User II
Super User II

Hi @Mous007 ,

 

check this out.

PBIX

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #
"Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website


View solution in original post

FrankAT
Super User II
Super User II

Hi @Mous007 ,

what about these measures:

 

09-04-_2020_23-19-17.png

 

Regards FrankAT

View solution in original post

4 REPLIES 4
FrankAT
Super User II
Super User II

Hi @Mous007 ,

what about these measures:

 

09-04-_2020_23-19-17.png

 

Regards FrankAT

View solution in original post

Hi @FrankAT , your solution works perfecly.

 

Thanks a lot.

 

Best regards,

Mous

mwegener
Super User II
Super User II

Hi @Mous007 ,

 

check this out.

PBIX

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #
"Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website


View solution in original post

 

hi @mwegener , this approach also worked fine for me.

 

Thanks a lot for sharing.

 

Best regards,

Mous

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors