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
ChinrajP
Frequent Visitor

Matrix Visual: Required Average of Sub-Total in Grand Total instead of SUM of Sub-Total

Dear All,

 I am working on a project for P&L reports in PBI. We want to get to know the employee contribution towards the projects worked. In that, I am facing a problem in computing the Grand Total value in a Matrix table. The visual shows us the sum of the sub-total in grand total. But we need to show the average of the sub-total in grand total. Please guide me, on how to achieve this. Attached is the screenshot of the current and to-be methods.

ChinrajP_0-1720429326409.png

Sample File:  Sample.pbix

 

Thanks,

ChinrajP

 

2 ACCEPTED SOLUTIONS

@ChinrajP Here the measure:

Measure_BBF =
IF (
    ISINSCOPE ( Sheet1[Project Name] ) ,
     SUM ( Sheet1[Effort Contribution]),
     SUMX(Sheet1, (Sheet1[Effort Contribution])) / DISTINCTCOUNT(Sheet1[Project Name])
)
 
Use the measure in the matrix, instead of the default sum of the field Effort Contribution.
 
BBF

View solution in original post

It works fine. Thank you very much for the help.

View solution in original post

9 REPLIES 9
ChinrajP
Frequent Visitor

Accepted the request. Please do the need if possible. Thanks

@ChinrajP Here the measure:

Measure_BBF =
IF (
    ISINSCOPE ( Sheet1[Project Name] ) ,
     SUM ( Sheet1[Effort Contribution]),
     SUMX(Sheet1, (Sheet1[Effort Contribution])) / DISTINCTCOUNT(Sheet1[Project Name])
)
 
Use the measure in the matrix, instead of the default sum of the field Effort Contribution.
 
BBF

It works fine. Thank you very much for the help.

@ChinrajP If it works, please accept my answer as solution, thanks

BeaBF
Super User
Super User

@ChinrajP Hi! Can you attach sample data and the measures in power bi? 

 

BBF

@ChinrajP 

BeaBF_0-1720440946053.png

 

@ChinrajP please accept my request to access. 

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.