Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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.

  • 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

     

5 Replies

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Icon for Community Support rankCommunity 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's avatar
      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

       

      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

       

       

      • mahoneypat's avatar
        mahoneypat
        Icon for Microsoft Employee rankMicrosoft Employee

        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

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Icon for Community Support rankCommunity 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