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 / Delegation Warning whi...
Power Apps
Answered

Delegation Warning while filtering value using combo box

(1) ShareShare
ReportReport
Posted on by 280
Hi,
 
getting delegation waring while filtering data through combo box, data source is SharePoint  and the column is choice's iam using this code
ClearCollect(
    colGridData,
    Filter(
        DB_List,
        StartsWith(PREFIX, prefixsearch.Text) &&
        (
            IsBlank(filternames.Selected.Value) ||
            'A owner'.Value = filternames.Selected.Value
        )
    )
)
 
Pls check and support on same
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,717 Most Valuable Professional on at
    All of that is Delegable assuming 'A owner' is a single value Choice or Lookup column, PREFIX is a Single Line of Text column and filternames is a single selection Combo Box. Also that code produces a Collection (it is not a Filter for a combo box on its own), so where exactly are you using it ?A Combo Box Items would be
    Filter(
       DB_List,
       StartsWith(
          PREFIX, 
          prefixsearch.Text
       ) &&
       (
          IsBlank(filternames.Selected.Value) ||
          'A owner'.Value = filternames.Selected.Value
       )
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • Jawaharprem Profile Picture
    280 on at
    Hi Sir,
    thanks for your time,
    A Owner is Choice Column with Multiple Selection in SharePoint,  
  • Verified answer
    WarrenBelz Profile Picture
    155,717 Most Valuable Professional on at
    So the next question is if filternames is a single or multiple choice Combo Box. If a single choice
    With(
       {
          _Data:
          Filter(
             DB_List,
             StartsWith(
                PREFIX, 
                prefixsearch.Text
             )
          )
       },
       Filter(
          _Data,
          IsBlank(filternames.Selected.Value) ||
          filternames.Selected.Value in 'A owner'.Value
       )
    )
    and if multiple choice
    With(
       {
          _Data:
          Filter(
             DB_List,
             StartsWith(
                PREFIX, 
                prefixsearch.Text
             )
          )
       },
       If(
          IsEmpty(filternames.SelectedItems),
          _Data,	  
          Ungroup(
             ForAll(
                filternames.SelectedItems As _Items,
                Filter(
                   _Data,
                   _Items.Value in 'A owner'.Value
                )
             ),
             Value
          )
       )
    )
    It is important to note that both structures above allow some degree of Delegation management (the in filter is not Delegable and is needed for multi-selection fields). Providing the top filter returns record numbers less than your Data Row Limit, you will receive the desired data set.
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
     
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 471

#2
WarrenBelz Profile Picture

WarrenBelz 395 Most Valuable Professional

#3
11manish Profile Picture

11manish 279

Last 30 days Overall leaderboard