cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## 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

Accepted Solutions
Highlighted
Microsoft

Hi @alnovikov ,

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

5 REPLIES 5
Highlighted
Microsoft

Hi @alnovikov ,

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-...

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

Highlighted
Frequent Visitor

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

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

Highlighted
Super User III

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

Proud to be a Super User!

Highlighted
Frequent Visitor

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

Highlighted
Microsoft

Hi @alnovikov ,

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

Announcements

#### Power Platform Community Conference

Check out the on demand sessions that are available now!

#### Microsoft Power Platform Communities

Check out the Winners!

#### Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors