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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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