Forum Discussion

SureshA's avatar
SureshA
Helper II
1 year ago
Solved

Percentage of features completed

  • I have created powerbi dashboard using azure devops analytics as data source

 

I have the list of fields from ado into powerbi

WorkItem ID

WorkItem Type

State

Parent Work ItemId

 

The items are epics, features, story, task which are related by parent work item id

 

I am looking for pulling out a rollup status and percentage completion at epic and feature level

I have tried to use the blank query in powerbi using the code in below link

I am able to save the query without any syntax error, however the query is not yielding any data. I am not sure how to overcome and get the data source that I can proceed with calculation of percentage 

In the meantime is there a simple way to derive this percentage of features or epics rolled up based on their child status using the DAX or query

  • v-venuppu The solution is as follows

    a) Create 2 Copies of the complete dataset as tables which has the list of all features and stores linked using ParentWorkItem ID

    b) Rename the tables of dataset as Features and Stories

    c) Create one to many relation from Features table by mapping Work Item ID field to Parent Work Item ID in Stories table

    d) Create 2 measure - Completed Story Points and Total Story Points in the Features table

    e) Completed Story Points - Use SumX to sum all stories that are in completed or done status

    f) Total Story Points - Use SumX to sum the story points from all stories

    f) Create a measure called % Completion using Completed and Total Story Points

     

     

15 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  SureshA ,

     

    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you

     

    Best Regards,

    Liu Yang

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

  • SureshAnanth's avatar
    SureshAnanth
    Frequent Visitor

    Liu Yang, Thanks 

    Pls find below sample data and output

     

    Input Data Source

    Area PathWork Item IdTitleStateWork Item TypeStory Points
    Project\Product1\Squad 1100Feature AIn ProgressFeature40
    Project\Product1\Squad 1101Story A1DoneStory10
    Project\Product1\Squad 1102Story A2In ProgressStory10
    Project\Product1\Squad 1103Generic Task A3DoneGeneric Task10
    Project\Product1\Squad 1104Generic Task A4In ProgressGeneric Task10
    Project\Product2\Squad 2200Feature BDoneFeature80
    Project\Product2\Squad 2201Story A1DoneStory20
    Project\Product2\Squad 2202Story A2DoneStory20
    Project\Product2\Squad 2203Generic Task A3DoneGeneric Task20
    Project\Product2\Squad 2204Generic Task A4DoneGeneric Task20
    Output Data Table

     

    Area PathTitleState % Complete
    Project\Product1\Squad 1Feature AIn Progress50%
    Project\Product2\Squad 2Feature BDone100%

     

     

  • v-venuppu's avatar
    v-venuppu
    Community Support

    Hi SureshA ,

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

    Regards,

    Rama U.

    • SureshAnanth's avatar
      SureshAnanth
      Frequent Visitor

      Thanks for following up. I couldnt get the values right after creating the formulas given in the solution

       

      However, i have managed to create the copy of the data set and establish  1 to many relationship from feature to story and able to derive the Features completion based on status and story points defined at stories and tasks

      • v-venuppu's avatar
        v-venuppu
        Community Support

        Hi SureshAnanth ,

        Great to hear that it's working.Could you please share the solution? It would be really helpful for others in the community who might be facing similar issues and can address them quickly. Also, I would suggest accepting your approach as the solution so that it can benefit others as well.

        Thank you.