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
Anonymous
Not applicable

Power BI Calculate Hierarchy Levels

Good day Power BI gurus,

 

Please will you suggest me how should i perform calculations (SUM) on hierarchy levels.

Herewith example:

 

Hierarchy Level.png

Please note,
If I choose "C" in the slicer, it should calculate (SUM) "C"  value, which is 25 and it's connected levels ("H", "R"),values respectedly 29, 40

If I choose "A" in the slicer, it should calculate (SUM) "A"  value, which is 10 and it's connected levels ("A", "B"),values respectedly 15, 25

 

Please will you provide solution / DAX accordingly

 

Thank you

 

Kind Regards

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

Based on your description, I could understand your requirement correctly.

If it is convenient, could you share your original table structure so that I could have a test on it?

In addition, you could have  a reference of the similar threads below.

https://community.powerbi.com/t5/Desktop/Manager-Level-Hierarchies-with-multiples-in-Power-BI/td-p/322302

https://community.powerbi.com/t5/Desktop/Dynamic-measure-calculation-for-hierarchy-data/td-p/592546

https://community.powerbi.com/t5/Desktop/Sum-Hierarchy-Levels-based-on-selection/td-p/477855

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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