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

Matrix not summing my values

I have this formula and the matrix is not summing in the totals.

 

Average Holding Period = IF(FIRSTNONBLANK(Capex[Fully E. N. Leases & A. Year],TRUE()) = YEAR(TODAY()), MONTH(TODAY()),  IF(LASTNONBLANK(Capex[Fully E. N. Leases & A. Year], TRUE())  = LASTNONBLANK(Capex[Built Date],TRUE()) ,     12 - (month(average(Capex[OTHVR Actual Date])))   ,    12  ))

 

They are divided in years, but for some reason it displays 12 in the grand total.

 

option 2 horizontal.PNG

1 ACCEPTED SOLUTION
7 REPLIES 7
jtownsend21
Responsive Resident
Responsive Resident

Can you share some sample data and what visualization you are using? 

Anonymous
Not applicable

I am using the matrix. but cannot share data.

Without sample data I am not sure how to help.

 

Please see this post: 

How to Get Your Question Answered Quickly - Microsoft Power BI Community

Anonymous
Not applicable

maybe this can help? average holding period subtotal is not adding up. the dax has if statement and average of date, I dont know how thats affecting this.

 

option 1 vertical.PNG

Anonymous
Not applicable

Great! glad you found a solution. 

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