Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.