web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Distinct Limited to 50...
Power Apps
Answered

Distinct Limited to 500 records?

(0) ShareShare
ReportReport
Posted on by 7

HI, I am building an app which books patient notes in - i am getting location and user information from an SQL DB and i have a lot of locations and a lot of users respectively, the issue is that i am using a combo box to call the users/locations dependant on where the user would like to book the patient notes to. my issue is that its only fetching me 500 records back when using distinct. here is my code...

 

If(Dropdown2_2.Selected.Value = "User",Distinct('[dbo].[View1]',Name),Distinct('[dbo].[View2]',Name))

 

any ideas on how to bypass this 500 record limit?

Categories:
I have the same question (0)
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    Option 1 is to modify the filter to further narrow down the number of items being returned. Option 2 is to go to app settings --> advanced, and change the data row limit for non-delegable queries, and increase it from the default of 500. You may want to first read the announcement of this feature here, which also provides guidance. Option 3 is to reconfigure the database so that the distinct list is available via a separate table or a view. (this wouldn't get past the 500 limit, but it would ensure that the distinct list is generated from the server, so PowerApps wouldn't have to call the distinct()).

  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Dandev ,

     

    This is because that  Distinct using Azure SQL doesn't support delegation. You can change the limitation number from 500 to 2000 under File tab, select App settings. Under Experimental features, change the Data row limit for non-delegable queries setting to 2000.

     

    If you need this feature, you could vote on below idea which status is under review:

    Please Extend delegation to Distinct

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Please-Extend-delegation-to-Distinct/idi-p/23207

     

    Regards,

    Mona

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard