Forum Discussion
Anonymous
10 years agoNot applicable
rankx by group
I am using the below formula to rank sales results. I would like to group the ranking by a column of Profit Center's. What can I add to the below formula so that the ranking column adds a ranking b...
- Anonymous10 years ago
Total Sales is a calculated field.
- Anonymous10 years ago
Good news...your feedback works! I had to make a small adjustment in my formula and it worked perfect. Thanks for all your help!
Vvelarde
Community Champion
10 years agohi Anonymous
Ranking = RANKX(FILTER('Sold-To-Database';'Sold-To-Database'[Profit Center]=EARLIER('Sold-To-Database'[Profit Center]));'Sold-To-Database'[Total Sales];;DESC;Dense)
- Anonymous10 years agoNot applicable
Hi Victor,
Thanks for your feedback. Based on your suggestion I entered the following formula and received the below error.
Thoughts?
Tim
Ranking = RANKX(FILTER('Sold-To Database','Sold-To Database'[Profit Center]=EARLIER('Sold-To Database'[Profit Center])),'Sold-To Database'Sold-To Database'[Total Sales],DESC,Dense)
- Vvelarde10 years ago
Community Champion
Anonymous
Work with a Calculated Column.
Regards
- Anonymous10 years agoNot applicable
Total Sales is a calculated field.