Forum Discussion
bo_afk
Post Patron
5 years agoSum values by category in table
I've created a measure to sum my values grouped by 2 categories using the SUM and ALLEXCEPT functions, however it's not calculating the numbers as expected. Table Category2 Category1 ProductID...
amitchandak
Super User
5 years agobo_afk , Try like
Measure = CALCULATE(SUM('Table (2)'[Sales]), REMOVEFILTERS('Table (2)'[Category1],'Table (2)'[Category2]))
- bo_afk5 years ago
Post Patron
Hi amitchandak, thanks for your suggestion. Unfortunately this hasnt completely worked. It sums it up by productID but not by category 2.