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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
borniex
Frequent Visitor

Calculation based on hierarchy

Hello

 

 I have a hierarchy model. How can I calculate the required material based on the model? How much do I need for order quantity from ID 5 # 6?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @borniex ,

 

I think ALLEXCELT() function might help you.

Simple example as below.

Measure = CALCULATE(SUM('Table'[Column3]),ALLEXCEPT('Table','Table'[Column1]))

 1.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @borniex ,

 

I think ALLEXCELT() function might help you.

Simple example as below.

Measure = CALCULATE(SUM('Table'[Column3]),ALLEXCEPT('Table','Table'[Column1]))

 1.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

amitchandak
Super User
Super User

Refer

https://community.powerbi.com/t5/Desktop/Calculating-measures-based-on-different-hierarchy-levels/m-...

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

how can to attach pbix file?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.