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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

need help with calculation median for Cycle Time (azure devops)

i have dataset from Azure DevOps (about team work activity), based exist data i alredy create measure for calculate Cycle time (sum duration in certain state) but if see on graph vizulization that data isn't fully display real situation, becase may be values of Cycle Time, which can be outside of values (example, very big values of Cycle Time in certain day, but them avaraged on the graph). Therefore i want display on vizulization also median (and min/max values). I can't calcultate median for this task. I try to describe my problem.

1. meassure for calculate Cycle time is calculate aggregate values
For median calculate I should get result of all values Cycle Time (per period), no can't undestand how to do it.

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

What's your expected output? Put all cycle time in one column and put median/max/min  in one column? You can try the following measure:

 

 

Cyclte time (period_) = CONCATENATEX('Table','Table'[Cycle Time],"+")
median/max/min  = MEDIAN('Table'[Cycle Time])&"/"&MAX('Table'[Cycle Time])&"/"&MIN('Table'[Cycle Time])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

View solution in original post

5 REPLIES 5
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

What's your expected output? Put all cycle time in one column and put median/max/min  in one column? You can try the following measure:

 

 

Cyclte time (period_) = CONCATENATEX('Table','Table'[Cycle Time],"+")
median/max/min  = MEDIAN('Table'[Cycle Time])&"/"&MAX('Table'[Cycle Time])&"/"&MIN('Table'[Cycle Time])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please inform us more detailed information( your

 data and expected output (by OneDrive for Business)) if possible? Then we will help you more correctly. And you can also refer to https://docs.microsoft.com/en-us/azure/devops/report/powerbi/sample-boards-leadcycletime?view=azure-devops&tabs=powerbi

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

Anonymous
Not applicable

I have mesure for calculare Cycle Time is:

Cycle Time_total - calulate measure for week (all values)

Closed Items - count of total closed items for week

Cycle Time Avg  = Cycle Time_total / Closed items from week

Снимок экрана 2020-11-21 в 21.29.00.png

 

but i also want display other Cycle Time values (min, max, median)

I try explain my case. When we are calculate Cyclte Time, we are different values (12,67,7,98...) very different values (wide spread), because Cycle Time Avg - makes it very average, we cannot see jumps and bursts

 

I want addtiional calc Cycle time for each values (not aggegate):

Cyclte time (period_) CT1+CT2...CTn

median/max/min = CT1...CTn

 

I see the only solution: calculating the measure for each unique work items and placing this value in a new table (it should look something like this):

 

date (week num)     Work Item Id          Cyclte Time

40                               546                        12

40                              1265                        78

 

 

You can use the iterator functions for this.  Those are the ones that end in X.  For example,

 

Avg Cycle Time = AVERAGEX(Table, Table[Cycle Time])

Median CT = MEDIANX(Table, Table[Cycle Time])

Min CT = MINX(Table, Table[Cycle Time])

Max CT = MAXX(Table, Table[Cycle Time])

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

it's seems not correct work.

I created new measure which use AVERAGEX and measure for calculate Cycle Time

Cycle Time_averagex =
calculate(View Name,[Cyclte Time])

CT_alt2 - calc by Total Cyclte Time / closed items

ALT_average = calc with AVERAGEX

Screenshot 2020-11-22 at 14.10.23.png

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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