Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Any way to manually call sort function on a column inside custom visual

So let's say I have 100,000 values and I display a window of 1000 at a time. I want to be able to call a sort function onclick inside the visual. This sort function will check all the data inside the 100,000 values and return the top 1000 (sorted).

 

So far I have been using a ghetto sort version where I apply a TopN self Filter to retrieve the top 1000 values, then I sort all the columns myself with the inbuilt JS sort. Unfortunately, this method works on PowerBi Online and Desktop, but doesn't work on PowerBi Report Server..

 

Is there any function or API available like 'fetchMoreData' that can apply a sort of the entire dataset. I want to call from a button inside the visual. Any help would be appreciated. Thanks in advance. 

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.