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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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 works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

FrankAT
Community Champion
Community Champion

Hi @Mous007 ,

what about these measures:

 

09-04-_2020_23-19-17.png

 

Regards FrankAT

View solution in original post

4 REPLIES 4
FrankAT
Community Champion
Community Champion

Hi @Mous007 ,

what about these measures:

 

09-04-_2020_23-19-17.png

 

Regards FrankAT

Hi @FrankAT , your solution works perfecly.

 

Thanks a lot.

 

Best regards,

Mous

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 works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


 

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

 

Thanks a lot for sharing.

 

Best regards,

Mous

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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