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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Find Average Time per Month

Hi, 

I want to find an average time for one stage to another per month. I have this data below which are the date and time of each stage, the reference number that is the client, and the stage of this process, the stages are not necessarily in numerical order. If someone could show me how to calculate it on DAX or Power Query I appreciate it. 

 

DateReference NumberWhich stage is the current property at
24/08/2021 11:5433156000013Stage 5 - Completion
07/09/2021 10:4210626000014Stage 1 - New Starts/Fee Letters
07/09/2021 11:1110626000014Stage 1 - New Starts/Fee Letters
09/09/2021 08:3710640000050Stage 1 - New Starts/Fee Letters
09/09/2021 10:5810638000038Stage 5 - Completion
09/09/2021 14:4810626000014Stage 4 - Enquiries
13/09/2021 11:1933456163045Stage 4 - Enquiries
16/09/2021 09:1033456100283Stage 4 - Enquiries
20/09/2021 12:2233139000070Stage 1 - New Starts/Fee Letters
21/09/2021 09:2733456174033Stage 4 - Enquiries
07/10/2021 09:0733456140033Stage 3 - Info Sheet
14/10/2021 16:5733456140033Stage 4 - Enquiries
04/11/2021 17:0510640000050Stage 2 - Packs
09/11/2021 16:5533456140033Stage 4 - Enquiries
23/11/2021 09:0033456140033Stage 4 - Enquiries
01/12/2021 12:2833456174033Stage - Other
02/12/2021 10:3810626000014Stage 4 - Enquiries
5 REPLIES 5
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,


I don't seem to quite understand what you are looking for. For stage1, can you give an example of how to find the average time for the corresponding month based on the given result table.

vhenrykmstf_0-1646720130891.png


Looking forward to your reply.


Best Regards,
Henry

 

Anonymous
Not applicable

Hi @v-henryk-mstf The time of each stage is the time of the current until the next stage time. Stage time = Next stage time (in chronological order) - current stage time (in chronological order). Note: the stages are not necessary in order, e.g. the process can start in stage 1 and the next would be stage 4. 

PijushRoy
Super User
Super User

Hi @Anonymous 

Based on above data, what is your output date, please provide




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Anonymous
Not applicable

Hi @PijushRoy was on 02 Dece 2021 at 11am. 

Anonymous
Not applicable

Hi @PijushRoy  I would like to have an output as below, with the average time (in minutes) by Stage, by month. Thanks

Stage 1Avg TimeAvg TimeAvg TimeAvg TimeAvg Time
Stage 2Avg TimeAvg TimeAvg TimeAvg TimeAvg Time
Stage 3Avg TimeAvg TimeAvg TimeAvg TimeAvg Time
Stage 4Avg TimeAvg TimeAvg TimeAvg TimeAvg Time
Stage 5Avg TimeAvg TimeAvg TimeAvg TimeAvg Time
Stage - OtherAvg TimeAvg TimeAvg TimeAvg TimeAvg Time
 Aug-21Sep-21Oct-21Nov-21Dec-21

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.