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
pang22
Helper III
Helper III

Correct the total in Matrix

Hello

 

I have a table with budget and amount
$234 budget fot ITBD
$1749 budget for ITHQ

pang22_4-1713839858652.png

 



When I make matrix in PowerBI, the budget column will auto sum, so I choose minimum for budget by each code. But the total row will only show the minimum (234)

How to correct the total to a correct format? (i.e. 234+1749 = 1983)

pang22_6-1713839945800.png

 

 

pang22_2-1713839305393.png

 

 

1 ACCEPTED SOLUTION

Hi @pang22 

Please try the below measure for your Budget value.

Measure =
SUMX(DISTINCT('Table'[Code]),CALCULATE(MIN('Table'[Budget])))
 
Uzi2019_0-1713857303141.png

 

 

I am getting the expected output you wanted.


I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

5 REPLIES 5
Uzi2019
Super User
Super User

Hi @pang22 
Can you can share the Sample data in excel or pbix file so will look into this?

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

 

Hi @Uzi2019 


This is the data in excel. Thank you.

CodeCategoryBudgetCommitted amount
ITBDUpgrade234134
ITHQRegulation174942
ITHQMaintenance174953

Hi @pang22 

Please try the below measure for your Budget value.

Measure =
SUMX(DISTINCT('Table'[Code]),CALCULATE(MIN('Table'[Budget])))
 
Uzi2019_0-1713857303141.png

 

 

I am getting the expected output you wanted.


I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Wilson_
Super User
Super User

Hi pang22,

 

You chose minimum, so your matrix is showing you the minimum. Why does sum not work for you? What output are you looking for?




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

Proud to be a Super User!





Hi @Wilson_ 

 

If choose sum, it will sum the buget

pang22_2-1713842099491.png

 

Becasue I only have one budget for each Code. And spend in each category.
$234 budget fot ITBD, spend $134
$1749 budget for ITHQ, spend $42 & $53

pang22_1-1713842004421.png

I am looking for the table in below format with correct total (i.e. 234+1749 = 1983)

pang22_3-1713842262573.png

 

 

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!

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
Top Kudoed Authors