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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Use measure to calculate matrix column total

I want to create a measure that will calculate the column total of a matrix

 

MonthYearJan-22Jan-22Feb-22Feb-22Mar-22Mar-22
ItemItem CountTotal Item CountItem CountTotal Item CountItem CountTotal Item Count
Top517314220
Jean417314220
Hat517214920
Skirt317614720


For example, table above shows different clothing items and the number of those items sold each month (the Item Count). I want to create a measure that will show the total number of all clothing items sold each month (Total Item Count) - I know that I can turn on the total row but that isn't what I'm after. 
Thanks in advance

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Try:

Total item count = CALCULATE(COUNT(Table[Item]), ALL(Table[Item]))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Try:

Total item count = CALCULATE(COUNT(Table[Item]), ALL(Table[Item]))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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