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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

PowerBi Azure DevOps OData WorkItem hierarchy

Hi guys,

Been tinkering around with Azure Devops and PowerBi through OData lately and stumbled upon the same problem multiple of times.
Completely understand the OData queries and all but can't seem to find a logical way to create a hierarchy in the powerbi model. 


Options I've tried:
Retrieve Epics, Features and User Stories on three seperate occasions and put them into three seperate tables and create relations between them. Problem: When Area, Boardlocation, Users  and Iterations are also retrieved only one of the three (epic, feature, user story) can have a relation to them.

Options I've looked into but didn't seem to be a solution:
Retrieving WorkItemLink (SourceWorkItemId & TargetWorkItemId) and trying to make a relation but does not activate because of a loop. 

Does anyone have any experience with this? I'd be glad to know. Cheers!

Current layout:

achmeaboy_0-1683625717995.png

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. Regarding data modeling I would build a single dimension for User Stories with minimun and necessary columns with left join for features and epics. It's like classic scenario of Product, Product SubCategory and Product Category of adventure works. The maximum granularity is stories. So take it al repeated and redundant in there. A Story dimension will have all categorical story values + feature name + epic name. You can also take other columns that will help you relate with tables like userid.

That would be the way to model that.

I hope that make sense


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

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hi. Regarding data modeling I would build a single dimension for User Stories with minimun and necessary columns with left join for features and epics. It's like classic scenario of Product, Product SubCategory and Product Category of adventure works. The maximum granularity is stories. So take it al repeated and redundant in there. A Story dimension will have all categorical story values + feature name + epic name. You can also take other columns that will help you relate with tables like userid.

That would be the way to model that.

I hope that make sense


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.