Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi
I have a simple measure
Calculate(Sum ('Table' [Sales]))
what i want to be able to do is add in something to sort by asc or desc.
I have tried adding
Calculate(
Sum 'Table' [Sales]), , asc, dense) but this is not working.
Any ideas please
Solved! Go to Solution.
Hi @maurcoll
Based on your needs, I have created the following form.
You can use the following formula to get the ranking of the sales column
Sales Rank =
RANKX(
ALL('Table'),
CALCULATE(SUM('Table'[Sales])),
,
DESC,
Dense
)
This is the result you want
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @maurcoll
Based on your needs, I have created the following form.
You can use the following formula to get the ranking of the sales column
Sales Rank =
RANKX(
ALL('Table'),
CALCULATE(SUM('Table'[Sales])),
,
DESC,
Dense
)
This is the result you want
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @maurcoll
If you are using the above measure in any visual, in visual you have the sort option
Or you can sort by category
Can you please share the screenshot of the requirement?
If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.
Thanks
Pijush
Proud to be a Super User! | |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 75 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |