Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
This page (https://github.com/Microsoft/PowerBI-visuals/blob/master/Capabilities/Sorting.md) describes how to implement sorting when creating custom visualizations. I'm interested in custom sorting, but the documentation is extremely sparse.
What I'd like to do is hang several custom menu options in the system sort menu (Sort by this, Sort by that, etc.) and then get a notification when a user chooses a specific sort menu option. I'm doing this because my visual is populated by passing in a json collection of properties and then I'm building a custom display. I'd love to allow users to sort using a menu option in addition to whatever sort UI I can expose.
Are there some additional docs or sample code on the custom sort option?
Hello @ChrisWilliams
You should specify the default sorting at capabilities object as described in the documentation.
Power BI calls the update method of your visual once sorting is changed by user.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |