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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Sravika
Regular Visitor

Parent Child Matrix Visual - Please help

Hello,

 

I have two tables here Table A and Table B and the data is showing up incorrectly when I am using Matrix visual.

 

Table A

ParentChild DeptBudget
A10B1Health Care$100,000
A10B2Health Care$20,000
A11B3Retail$45,000

 

 

Table B

ParentDeptExpenses
A10Health Care$50,000
A11Retail$5,000

 

Expected Output should be (Using Matrix Visual)

 

ParentChildBudgetExpensesRemaining
A10B1$100,000  
 B2$20,000  
Total $120,000$50,000$70,000
A11B3$45,000  
Total $45,000$5,000$40,000

 

 

What I am actually getting

 

ParentChildBudgetExpensesRemaining
A10B1$100,000$50,000$50,000
 B2$20,000$50,000-$30,000
Total $120,000$100,000$20,000
A11B3$45,000$5,000$40,000
Total $45,000$5,000$40,000

 

 

We have expenses at Parent level but the ouput I am getting is taking at child level. Example: A10 parent has $50,000 expenses but the ouput I am getting is taking $50,000 twice.  Please help.

 

Thank you,

Sravika 

 

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@Sravika 

you can try this

 

Expense = if(ISFILTERED('Table A'[Child ]),blank(),sum('Table B'[Expenses]))
 
remaining = if(ISFILTERED('Table A'[Child ]),blank(),sum('Table A'[Budget])-[Expense])
 
11.PNG
 
pls see the attachment below
 
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

lbendlin
Super User
Super User

2 REPLIES 2
lbendlin
Super User
Super User

lbendlin_0-1719279042774.png

 

 

ryan_mayu
Super User
Super User

@Sravika 

you can try this

 

Expense = if(ISFILTERED('Table A'[Child ]),blank(),sum('Table B'[Expenses]))
 
remaining = if(ISFILTERED('Table A'[Child ]),blank(),sum('Table A'[Budget])-[Expense])
 
11.PNG
 
pls see the attachment below
 
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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