Forum Discussion
Anonymous
6 years agoNot applicable
cumulative sum without date
Hi! I need to identify the most sold products which represent 80% of my sales. For instance: PRODUCT SALES CUMULATIVE SALES A 50 ...
- 6 years ago
Anonymous
Cumulative is based on the sort order , You can sort on sales
Cumm1 = CALCULATE(sum('product'[SALES]),FILTER(all('product'),'product'[SALES]>=MAX('product'[SALES])))Better you create a dense rank and use that. New column
rank = ranks(all(Product),Product[sales],,asc,dense)
Use rank in last formula
MattAllington
6 years agoCommunity Champion
This is a standard pattern. You can read about it here https://www.daxpatterns.com/abc-classification-dynamic/
Anonymous
6 years agoNot applicable
Sorry but this example does not fit as my exercise has only one table with these two columns. I just need to set up cumulative sales