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
Anonymous
Not applicable

How to show the Sum of the total column in the Matrix Table

Hi PBI Community,

 

I created a measure to divide one table column from another table column. I used this code:

 

Coach Requirement =
var headcount = CALCULATE(SUM(Forecast[Forecast]))
var cratio = CALCULATE(SUM(Ratio[Coach Ratio]),FILTER(Forecast,Forecast[Account with LOB]=RELATED(Ratio[Account with LOB])))
Return DIVIDE(headcount,cratio)

 

My problem is when I used this in the matrix table, it's also dividing the total (I think). Is there a way to change the Total showing in the Matrix to sum just like when we use Pivot in Excel?

 

Capture.JPG

 

Thanks so much for the assistance. 😊

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Take a look at ISINSCOPE() function.

https://docs.microsoft.com/fr-fr/dax/isinscope-function-dax 

You could create a new measure like below:

Measure = IF(ISINSCOPE([column]),[Coach Requiremen],sumx('table',[Coach Requiremen]))

 

Best Regards,

Jay

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Take a look at ISINSCOPE() function.

https://docs.microsoft.com/fr-fr/dax/isinscope-function-dax 

You could create a new measure like below:

Measure = IF(ISINSCOPE([column]),[Coach Requiremen],sumx('table',[Coach Requiremen]))

 

Best Regards,

Jay

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