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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors