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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
homer4184
Advocate I
Advocate I

Hierarchy Per Unit Calculation

I am trying to do a hierarchy per unit calculation for 1 to many relationship tables. 

Name 2 is a hierarchy level where Name 1 is the low level of 2

     so when Name 2 = C that means Name 1 = A and B

 

at the top level i want to see the total for Name 2 for example C would be sum(ValueAmt) / 100

then the next level down have sum(ValueAmt) / 40 for Name 1 = A and sum(ValueAmt) / 60 for Name 1 = B

 

Below is tables as an example what I am trying to do.

Table A is Dollar Data information. Table B is units. 

 

Report is want I am trying to get to where [+] is going to go to the next level down

 

 

Table A.PNGTable B.PNGJoined Table A and B.PNGReports.PNG

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

HI homer4184,

 

You can create hierarchy based on Name2 and you can also use a matrix and drag Name2 and Name1 to column field.

 

Regards,

Jimmy Tao

I get the hierarchy portion of it, the problem I am facing is the calculation of the Value

 

Heres a better repsentation of the final result

 

C                                                           D

A          B             Sub Total C              R                          Sub Total D

75         50           60                            22                         22

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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