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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.