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

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
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.