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

View all the Fabric Data Days sessions on demand. View schedule

Reply
wrwillits
Helper III
Helper III

Measure will not total in Matrix Table

I've created a simple measure that compares two columns in two differnt tables to see if they are equal or not.

 

m.RetirementEvent =
IF(
    Average(RetirementAgeTable[Age]) = Average('Fleet Age Forecast'[Future Age]), 1, 0
)
 
I have added the "m.RetirementEvent" measure to a Matrix table and it works great for the individual cells, but it will not total the rows or the columns. 
 
Retirement Matrix.jpg
 
The idea is to allow the user to select the retirement age (the Age Slicer), which will then trigger the Matrix table to update and show the year that each aircraft will retire. I then want to use the totals by year to create a retirement line chart showing the total Volume of retirements per year. 
 
The "RetirementAgeTable[Age]" comes from the user selected Age Slicer, and the "Fleet Age Forecast'[Future Age]" comes from a fleet table that includes all the calculated ages of the aircraft from today out to 30 years into the future. 
 
I have tried numerous ways to write the measure, but I can't get the Matrix to total the numbers. What am I doing wrong?
1 ACCEPTED SOLUTION

Thanks Greg. I will do some reading and figure this out. I'll also vote for your idea.

 

Also, thanks @parry2k 

View solution in original post

4 REPLIES 4
wrwillits
Helper III
Helper III

Thanks.

Greg_Deckler
Community Champion
Community Champion

@wrwillits First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8

 

Thanks @parry2k 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks Greg. I will do some reading and figure this out. I'll also vote for your idea.

 

Also, thanks @parry2k 

parry2k
Super User
Super User

@wrwillits Referring to @Greg_Deckler - he is the master to answer on this subject. Cheers!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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