Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Hi @Antmkjr,
You can also take a look at the following blog to create a custom sort table to apply specific sorting order based on the 'sort by column' property and table relationship:
Regards,
Xiaoxin Sheng
Add some sort of index column and use the "Sort by"
I want to sort by Sal value
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
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)
Getting the below errror, and hence not able to sort the legends
Is there anything wrong with the solution i provided?
In the case mentioned above , it is not working?
Well, you are not trying the solution i provided, haha.
@NickolajJessenwrote:Note that this is done on a dimesions table
Also, if you don't want a country to appear, you can just filter it away in your visual. I don't think you need to filter it in your ranking.
This scenario i just gave as an example, in actual case, there many more filters than this.
Indexj = RANKX('Table',SUMX(CALCULATETABLE(FILTER('Table','Table'[Country]<>"Pakistan"), ALLEXCEPT('Table',Country)),'Table'[Sal]))
In this case it is giving circular dependency error.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |