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

How to have a measure summarize on a matrix visual?

Hello,

I've been scouring the forums and I've found a couple of answers to questions very similar to mine, but not quite the same. Their solutions don't work for me, but I may just be misunderstanding.

I have two measures:

 

LNetLeaseGoal = 
IF(
        ((([NextMonthBudOcc]) - SUM('Monthly Consolidated'[BudOcc])) * SUM('Property Attributes'[Total Units])) + (SUM(Operations[LeasesExpires]) - SUM(Operations[LeasesRenewal])) < 1,
        1,
        ((([NextMonthBudOcc]) - SUM('Monthly Consolidated'[BudOcc])) * SUM('Property Attributes'[Total Units])) + (SUM(Operations[LeasesExpires]) - SUM(Operations[LeasesRenewal]))
)

 

 

 

And

 

LULeadGoal = DIVIDE([LNetLeaseGoal], 0.064)

 


When I put it on a Matrix visual, I get this: 

okternal_1-1666133647981.png


LNetLeaseGoal is not summarized in the sub-total rows, which causes LULeadGoal to be incorrect as well. I need LNetLeaseGoal to be summarized in the subtotal rows. I've tried a few of the solutions out there, and one I got close, but for some reason it returned incorrect numbers in some cases. 

 

 

 

NewNetLeaseGoalTest = SUMX(Operations, [LNetLeaseGoal])

 

 

 

 

 

okternal_2-1666134137461.png


Any insight would be appreciated.

 

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @okternal 

According to your test , the total in your Matix is wrong. Right?

It is normal for an error to be in a measure because the global context is used when calculating Total.

You can try this way to modify the total:

(1)Use the SUMX() function to calculate your measure, but be careful that the table of the first argument should be kept as a table with your row headers.

(2)Replace the value of "Total" with the HASONEVALUE() function.

 

Modify total or need to combine the fields placed by your visual and your logical relationship to modify, if the above methods do not meet your needs, can you provide your .pbix file (remove sensitive data) to us, so that we can better help you.

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @okternal 

According to your test , the total in your Matix is wrong. Right?

It is normal for an error to be in a measure because the global context is used when calculating Total.

You can try this way to modify the total:

(1)Use the SUMX() function to calculate your measure, but be careful that the table of the first argument should be kept as a table with your row headers.

(2)Replace the value of "Total" with the HASONEVALUE() function.

 

Modify total or need to combine the fields placed by your visual and your logical relationship to modify, if the above methods do not meet your needs, can you provide your .pbix file (remove sensitive data) to us, so that we can better help you.

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Such a simple solution! Thanks so much. 

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.

Top Solution Authors