Forum Discussion
khappersett
Resolver I
9 years agoRANKX Function to Rank Table by Revenue
I am having trouble getting my rankx function to work. I have visited so many threads with similar questions but still can't seem to figure it out. I have a table with product skus, item IDs, rev...
- 9 years ago
I got it working with this code:
Rank = rankx(ALLSELECTED('PH FY 2016'[sku]),CALCULATE(SUM('PH FY 2016'[Net Revenue]), ALLEXCEPT('PH FY 2016','PH FY 2016'[sku], 'Cat DICT'[Category])))
khappersett
Resolver I
9 years agoI got it working with this code:
Rank = rankx(ALLSELECTED('PH FY 2016'[sku]),CALCULATE(SUM('PH FY 2016'[Net Revenue]), ALLEXCEPT('PH FY 2016','PH FY 2016'[sku], 'Cat DICT'[Category])))v-chuncz-msft
Community Support
9 years ago
Glad to hear that you've solved this problem. You could help mark it as answer. Your contribution is highly appreciated.