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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
FatherTheWizard
Resolver I
Resolver I

Aggregate sum of parent to be shown in table when lower level is visible, keep other filters

This is something that has been asken in various ways but cannot figure it out. I would like to aggregate by higher level in dimension table than I am showing in reporting Table. I am showing Team but I would like to show higher level (Business line) to which Team is tied to. Multiple teams can be tied to a Business line.

 

Tables

-Dimension: Country table which contains basically country.

-Dimension: Organization table where lowest level is Team and highest Business line. (i.e. each team belongs to business line)

-Dimension: Date table

-Fact table -> "Sales" Note: If I filter only Country=X, I do not want to see other countries rows filled with "aggregate of business line" but otherwise empty. 

 

I cannot post the table for some reason. I try to reply that one.

1 ACCEPTED SOLUTION

I finally found the solution by going through multiple quite similar but not exact cases here at the Community. I solved with this:

 

Measure =
SUMX (
    VALUES ( Organization[BusinessLine] ),
         Calculate([SalesSumMeasure];ALL(Organization[Team]))

View solution in original post

2 REPLIES 2
FatherTheWizard
Resolver I
Resolver I

Example table. Please help to calculate the last column starting with "how to calculate". Basically that is sum of "Value of the row" per each unique value in '(Organization table) Business line' column. 

 

I would like to see the below results of "aggregate" on each team's row even when Business line column is not used as a column in reporting table. Having Business line below is just to show example but in use cases Business line might not be in the table.

 

(Country table) Country(Organization table) Business line(Organization table) Team(Date) Month(Sales table) Value of the rowHow to calculate -> (Sales table) Aggregate Sum of business line per 'Value of the row' column    
XToys1May 2020100300    
XToys2May 2020200300    
XCars3May 2020300300    
YHorses4May 2020400900    
YHorses5May 2020500900    
YPigs6May 2020600600    

I finally found the solution by going through multiple quite similar but not exact cases here at the Community. I solved with this:

 

Measure =
SUMX (
    VALUES ( Organization[BusinessLine] ),
         Calculate([SalesSumMeasure];ALL(Organization[Team]))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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