The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
Is there a way to sort this chart from biggest to smallest values and not in the alphabetical order?
Hi @AnetaK ,
According to your description, here's my solution.
Create a calculated column.
Rank =
RANKX ( 'Table', 'Table'[Value],, DESC, DENSE )
Then select the Category column, in Column tools>Sort by column>Rank
Get the expected result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What if I want to slice my table by additional dimensions?
Calculated column would not work then as this rank should be dynamic.
Would a RANKX measure do?
Hi @AnetaK ,
I can't reproduce how a dimension dynamically change the value, could you please give an example?
If we use the Category as a slicer, it still works.
Best Regards,
Community Support Team _ kalyj
For example if we slice by month.
In each month a different category might be the biggest.
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
112 | |
80 | |
65 | |
48 | |
38 |