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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Not all options are sh...
Power Apps
Answered

Not all options are showing up in combo-box

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I have an app linked to a SharePoint and there's a combo-box where one can choose one or multiple departments to show everyone in those selected departments. I am using this formula for the combo-box: 

 

Sort(Distinct('SharePoint', department), Result, Ascending)

 

This formula doesn't show all the departments. There are 18 different departments in the SharePoint, but the drop down only shows 8. I found another way, where I just manually inputted all the 18 departments in the items property of the combo-box, and it works perfectly. However, I want it where if a new department is added in the SharePoint, I don't have to go into the code of the app to add it and instead it just automatically loads in the PowerApps. Is there another way to do this? 

 

Thank you!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @Anonymous ,

    Firstly, how big is your list and what do you have your Delegation limit set to? Distinct() is not Delegable and will only return values from the first number (your delegation limit) of your list records.

    If you want to add a new record, you will need a separate list with one filed (you can use the Title Field) with all the Departments and on the OnSuccess of your Form

    With(
     {
     wDept:
     LookUp(
     YourNewList,
     Title = Self.LastSubmit.Department
     ).Title
     },
     If(
     IsBlank(wDept),
     Patch(
     YourNewList,
     Defaults(YourNewList),
     {Title: wDept}
     )
     )
    )

    The Items of the Combo Box would then be

    YourNewListName.Title

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Verified answer
    WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on at

    I have more than 2,000 items in my list. I was wondering where to find the OnSuccess property on my form? 

  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @Anonymous ,

    Just select the form and it is in the drop-down list at the top left.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard