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 / how to filter data bas...
Power Apps
Answered

how to filter data based on a collection in PowerApps?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I am fairly new to PowerApps and building a Questionnaire App (includes 6-9 different scenarios) for my team where I source some data from few SharePoint lists. I have a text box - StoreID which may contain 1 or more values separated by a delimiter ",". I need to filter a gallery of Interface IDs based of the StoreID populated. I am able to do it for single StoreID but I am stuck for Multiple storeIDs. 

 

Here is what I have so far:

For Single StoreID : 

Filter(CustomerList, Customer_ID = StoreID .Text) 

This formula works for 1 StoreID . 

 

For Multiple Store ID: 

1. First, created a collection to store multiple Store IDs when populated

ClearCollect(MultipleShopID,Split(StoreID .Text,","));

2. Second, below is the formula on the Gallery to display/filter Interface IDs for those multiple StoreID .

Filter(CustomerList, Customer_ID = MultipleShopID.Result)

 

FYI, StoreID and Customer_IDs are sourced from 2 different SharePoint list.

However, I am getting delegation error on the second formula.

"Delegation warning the filter part of this formula might not work correctly on large data sets."

 

Any help is appreciated.

 

Thank you,

Anna

Categories:
I have the same question (0)
  • Verified answer
    v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    That is just the warning.If you want to avoid the warning, please try to use one collection.

    Collect your CustomerList firstly. Add one button control and then Button.OnSelect=ClearCollect(test,CustomerList)

    Then Filter(test,MultipleShopID.Result)

     

    More information:

    delegation-overview#delegation-warnings

     

    Best Regards.

    Yumia

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard