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 / Filter table with comb...
Power Apps
Answered

Filter table with combobox of type choice - delegation warning

(0) ShareShare
ReportReport
Posted on by 7

Hello Community,

 

I'm quite new to PowerApp, and need you help after watching dozens of videos and articles, I still do not have solution.

 

I have SharePoint list 'Requests' where I have 'Status' column of type 'Choice' (single choose available in SharePoint). In my PowerApp I have tblRequests (table) and cmbStatus (combobox).

 

cmbStatus Items = Distinct(Requests,'Status '.Value) // ! delegation warning

cmbStatus OnChange= Set(varSelectedStatus,Concat(cmbSelectedStatus.SelectedItems,Value,", "))

 

So I'm trying to filter my tblRequests based on selected values in cmbStatus with following formula, but get delegation warning:

 

tblRequests Items = Filter(Requests,StartsWith('Status '.Value,varSelectedStatus))  // ! delegation warning

 

I would really appreciate you help!

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

    Hi @OleksPowerUser ,

    Your issue stems mainly from your use of a Choice column for Status. If it was a Single Line of Text and you put your choices in the Power Apps combo box Items, the second one would work fine (StartsWith on complex field types such as Choice is not Delegable). Distinct() however is a different matter, however if your list is large, there is a workaround of sorts in this blog of mine.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @OleksPowerUser ,

    Can you try this - 

    Filter(Requests, Status.Value in Split(varSelectedStatus, ", "))
  • OleksPowerUser Profile Picture
    7 on at

    Thanks @Anonymous but it still returns delegation warning, as 'in' function is not delegable for SharePoint

  • OleksPowerUser Profile Picture
    7 on at

    Thank you, @WarrenBelz, unfortunately, the approach from your article (which I found really nice) still do not want to work with choice type, when I debugging (set delegation limit to 1 item in the settings) it returns me 1 item in combobox. Btw do you know if any workarounds for filtering table with complex field types such as Choice?

     

    Thank you!

  • Verified answer
    WarrenBelz Profile Picture
    155,922 Most Valuable Professional on at

    @OleksPowerUser ,

    I could say do not use them (I do not), but that probably does not help you. This is Delegable

    Filter(
     Requests,
     'Status '.Value = varSelectedStatus
    )

    or if Status was a Text field, so is this

    Filter(
     Requests,
     StartsWith(
     'Status ',
     varSelectedStatus
     )
    )

    Distinct() simply is not Delegable, however the workaround I posted may be a possible solution.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard