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 / Delegation issue on Co...
Power Apps
Answered

Delegation issue on ComboBox for Sharepoint

(0) ShareShare
ReportReport
Posted on by 105

I am trying to use a With statement to provide me a distinct value of dealer names. I have successfully used this statement in the past but for some reason having issues now. 

 

My first combo box is to select and Agent name 

SortByColumns(Distinct(Filter(tblCentury_Agents, sAgentStatus = "A"),Agency_Name_Code), "Value",SortOrder.Ascending)

 

The next combo box i am trying to select a dealer, this is where i am still having delegation issues as well when i turn allow searching back on it stops working completely.

With(
 {
 wStart: 
 Filter(
 tblCentury_Dealers,
 StartsWith(
 Dealer_Name_Code,
 Self.SearchText
 ) ,
 Agency_Name_Code = DataCardValue5.Selected.Value ,
 sDealerStatusDesc = "Active" || sDealerStatusDesc = "Pending"
 )
 },
 Sort(
 Distinct(
 wStart,
 Dealer_Name_Code
 ),
 Value
 )
)

 

The sharepoint list has about 4500 records, i have done this before with a list larger but for some reason i am now still having delegation issues. 

 

Any help would be appreciated. 

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,743 Super User 2025 Season 2 on at

    Hi @SMurphy 

     

    You could run a multiple collections to bring in the data in chunks of 2000, then group it into a larger collection.

     

    Refer this link : Solved: How can i manage to filter more than 2000 records - Power Platform Community (microsoft.com)

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • SMurphy Profile Picture
    105 on at

    Thanks i will consider that. Though i have had the With statement working in the past but for some reason having issues now. @WarrenBelz Do you see an issue with my code and know why it would not be working this time? 

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

    Hi @SMurphy ,

    Firstly, it will not work without searching turned on as you will not have SearchText to work with. What type of field is Agency_Name_Code ?

  • SMurphy Profile Picture
    105 on at

    @WarrenBelz Both the Dealer_Name_Code and Agency_Name_Code are calculated columns concatenating two fields. 

     

    I try turning on Allow Searching but it completely stops working when i do. 

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

    @SMurphy ,

    Then there is your problem - not only are these columns not Delegable, but they also have significant other issues when referenced by Power Apps and really should not be used.

  • SMurphy Profile Picture
    105 on at

    I swapped to non calculated fields and it fixed the issue, thanks. 

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 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard