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! Learn more

Reply
Matt_HD
Frequent Visitor

Measure works on rows but not subtotals in Matrix

Hi

 

I have some data (all on one table) that i'm summarising in a matrix

 

The table is as follows ( other columns redacted) there are many rows and the name is 'CTS Budget Course Volume'

 

 

Course    Value  Budget Total Attendees  Trainer Ratio  Capacity per Course   Date

 

H&S          20                      9                           1                           20                    01/04/2020

 

 

The manual calculation for Occupancy would be [Budget Total Attendees] / [Trainer Ratio] x [Value] x [Capacity Per Course]

 

I have converted to DAX as follows

 

Occupancy Budget (%) =

DIVIDE(

    SUM('CTS Budget Course Volume'[Budget Total Attendees]),

    SUM('CTS Budget Course Volume'[Capacity per Course])*sum('CTS Budget Course Volume'[Trainer Ratio])*sum('CTS Budget Course Volume'[Value])

)

 

However on a matrix visual this works perfectly for individual courses, but I have a Date Row and the subtotals/totals dont work properly......they display 0%

 

 

Any ideas?

 

There is a course master and date master table in the model with a simple 1 to many retalionship back to this table and this works fine accross the reso of the model so I suspect my issue is with the DAX above.

 

Thanks for your help

 

 

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Matt_HD 

Try this. I assume you want the total to add up the individual rows results. 

Occupancy Budget (%) TOT =

SUMX( SUMMARIZE(Table1, Table1[Col1], Table1[Col2], add all other columns in the visual here), [Occupancy Budget (%)] )

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Matt_HD
Frequent Visitor

Hi, that doesnt work im afraid as it just adds up all the % ages into a total, the answer should be 55% and that gives 2241%

 

I need it to apply the same calculation to the subtotals/totals as the rows, not add up all the rows calculations.

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.