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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
alvaroiramirez
New Member

How to create subtotals for hierarchical data?

Hi,

I am new to Power BI and I am having trouble creating a report based on data extracted from Azure DevOps. This is the way data is structured:

 

Table.jpg


[1]: /answers/storage/temp/250218-table.jpg

I need to get totals by:

- User Story
- Bug
- All User stories per feature
- All bugs per feature
- Feature (all its user stories & bugs per feature combined)
- Epic (all its features combined)
- Everything (all epics)

 

I tried using Power Query Editor / Group By (ribbon button) but Parent ID is not listed. Another option I thought were developing a program in Python to calculate these subtotals and update the table, but it will be more work each time the data is updated.

How can I get the values I need?


Many thanks in advance.

 

1 ACCEPTED SOLUTION

Thank you, Ashish. Unfortunately I could not find the answer in your websites. What I did was to link the same data source 4 times and rename them as Task, Story, Feature and Epic. Then, I linked those tables using work item id -> parent work item id. That created an inner join that now lets me summarize the tasks at any level (stories, features and epics). Hopefully this works for other folks.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Show the exact result that you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you, Ashish. Unfortunately I could not find the answer in your websites. What I did was to link the same data source 4 times and rename them as Task, Story, Feature and Epic. Then, I linked those tables using work item id -> parent work item id. That created an inner join that now lets me summarize the tasks at any level (stories, features and epics). Hopefully this works for other folks.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.