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! Request now

Reply
StevenHiatt
Frequent Visitor

How to show child/parent totals in matrix visualization

I have a set of sales data by customer. However, some customers have the same parent company. I would like to show in a matrix vizualization the total sales by customer, and include the total sales by parent. Below is what the desired output would look like:

 

Customer Parent Customer Total Parent Total
Customer1 Parent1 $150 $175
Customer2 Parent1 $25 $175
Customer3 Parent2 $100 $200
Customer4 Parent2 $50 $200
Customer5 Parent2 $50 $200

 

I've looked at various SUMIF-style solutions but none seem to give me the desired results. Is this possible, and if so what would the DAX be to calculate this?

 

Much appreciated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@StevenHiatt , based on what I got, a measure for

Parent Total =

calculate([Customer Total], filter( allselected(Table), Table[Customer] = max(Table[Customer])))

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

View solution in original post

2 REPLIES 2
StevenHiatt
Frequent Visitor

Thanks so much. Slight change to get the right answer:

calculate([Customer Total], filter( allselected(Table), Table[Parent] = max(Table[Parent])))

but that got me pointed in the right direction.

 

Just curious what the MAX is doing in the formula? Would MIN or AVG, etc work essentially the same?

amitchandak
Super User
Super User

@StevenHiatt , based on what I got, a measure for

Parent Total =

calculate([Customer Total], filter( allselected(Table), Table[Customer] = max(Table[Customer])))

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors