Forum Discussion
Anonymous
4 years agoNot applicable
Sort Values in a stacked column chart
https://drive.google.com/file/d/1GxPiajMP6seQSnRFa7eLVlJdm9Hvri8w/view?usp=sharing How to sort the values in a stacked column chart basd on value. Link to pbix attached.
NickolajJessen
4 years agoSolution Sage
Add some sort of index column and use the "Sort by"
- Anonymous4 years agoNot applicable
I want to sort by Sal value
- NickolajJessen4 years agoSolution Sage
Use index to rank based on sal
Note that this is done on a dimesions table.
Note this cal also be done without the support column:RANKX(countries, CALCULATE( SUM('Table'[Sal]) ))If this post solves your problem, accept it as a solution
Appreciate your kudos- Anonymous4 years agoNot applicable
https://drive.google.com/file/d/1GxPiajMP6seQSnRFa7eLVlJdm9Hvri8w/view?usp=sharing
Suppose if i am ranking as below, i am not able to sort the country column.(In real case i have to rank countries,after filtering certain records ,like mentioned below)
Indexj = RANKX('Table',SUMX(CALCULATETABLE(FILTER('Table','Table'[Country]<>"Pakistan"), ALLEXCEPT('Table',Country)),'Table'[Sal]))Getting the below errror, and hence not able to sort the legends