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.
Hi,
I want to check if a sort event was triggered. i.e. one of these options (in the image below) was selected by user.
Solved! Go to Solution.
Yes, VisualUpdateOptions.type is all you can use here.
There is no explicit event for sorting as a sort will trigger a re-query against the data model. As far as the visual is concerned, this is an update of all data, so will typically trigger an enum value of 2 (Data).
Note that if you implement sorting using the custom option, and manage via the properties pane, that property change will also trigger a re-query, and therefore the same condition as above can be used to manage that situation also.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Yes, VisualUpdateOptions.type is all you can use here.
There is no explicit event for sorting as a sort will trigger a re-query against the data model. As far as the visual is concerned, this is an update of all data, so will typically trigger an enum value of 2 (Data).
Note that if you implement sorting using the custom option, and manage via the properties pane, that property change will also trigger a re-query, and therefore the same condition as above can be used to manage that situation also.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
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 |
---|---|
8 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |