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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculating through a hierarcy

Hi All

I have two tables with production informations. One table with the Main item, bomlist ID and hours and another table with the items that goes in to the bom list and hours.

The Main items might go in to another Main Item which means that it will be a sub item on a bom list for a main item.

I what to calculate how many hours an Item takes to produce through the whole network of 10 levels.

It means that one item might have a bomlist containing items that have another bomlist containing other items ect.

 

How can this be done with DAX?

3 REPLIES 3
Anonymous
Not applicable

An example is here - Item 120000000007 has BOMID 61381008501 which contains sub item 120000000025 and 120000000038. But the last item (120000000038) does also has a BOMID which is D120000000038. This BOMID contains sub item 130007000034 and 160007100193.

 

So I will like to sum up the hours from the lowest level and up to top level. In the real life case I have 10 levels. In this sample there are only 3 levels.

 

see sample here:

https://skioldgroup-my.sharepoint.com/:x:/g/personal/jen_skiold_com/EeCnaMOLxKFMkJHlKVGQRz8BFGheMYvr...

Fowmy
Super User
Super User

@Anonymous 

 

Can you share some sample data and the expected result to have a clear understanding of your question?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?

_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi Foumy,

I have tried to make a sample and description - Hope this help?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.