Forum Discussion
Yikester20
8 years agoRegular Visitor
DAX Adding up ranks over another grouping
I have a table with data like this: StoreID | Week/End | Sales
===========================
1 | 9/2 | 10
2 | 9/2 | 5
3 | 9/2 | 3
1...
- 8 years ago
Try to create a measure as below. See more details in the attached pbix file.
Overall Rank = VAR tbl = ADDCOLUMNS ( sales, "rank", RANKX ( CALCULATETABLE ( sales, ALLEXCEPT ( sales, sales[Week/End] ) ), sales[Sales], , DESC, DENSE ) ) RETURN SUMX ( tbl, [rank] )
Ashish_Mathur
Super User
8 years agoHi,
A simple SUM measure should work
=SUM([Rank])