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 / Filtering Data Source ...
Power Apps
Answered

Filtering Data Source before Delegation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a Microsoft lists table with approximately 10 000 rows. To filter this in Powerapps, I have multiple drop downs that are dependent on prior ones. This is the items from the last dropdown:

 

Distinct(Filter('Table', Col1 = Dropdown1.SelectedText.Value, Col2 = Dropdown1_1.SelectedText.Value, 'Col3' = Dropdown1_2.SelectedText.Value, 'Reporting Period' = Dropdown1_4.SelectedText.Value), Col4)

 

 The issue is the gallery being filtered by these dropdowns doesn't include all the rows since Col4 is multiple lines of text. My initial understanding was that as long as the first 3 columns filter the data source to below 2000 rows, I will receive all matching rows regardless of col4 being undelegable. Is this not the case? and are there any workarounds?

 

Gallery Items: 

 

Filter('Table',Col1= Dropdown1.SelectedText.Value, Col2 = Dropdown1_1.SelectedText.Value, Col3 = Dropdown1_2.SelectedText.Value, Col4 = Dropdown1_3.SelectedText.Value)

 

 

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

    Hi @Anonymous ,

     

    Unfortunately, if a non-delegable function appears in the formula, it will only retrieve the first x records.

    If the number of filter outputs is less than or equal to 2000, please try to save the results in a collection and then use the distinct function.

     

    If the num >2000, please consider using flow handling the large data. The idea is to pass the condition to flow, and then flow will return the processed outputs to the the canvas app.

     

    Best Regards,

    Wearsky

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks for the response!

    So, if I have a delegable filter function that returns 1 row, row number 10 000 and add a non-delegable filter to this function, the function will return nothing?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    If the record is the first record in the table then it will return a record else it will return empty.

    Hope it helps.

     

    Best Regards,

    Wearsky

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    After further testing, I've found that filter(table, delegable function, undelegable function) is not equivalent to filter(filter(delegable functions), undelegable function), which fixes my issue. Nesting the filters allows the undelegable function to return all rows as long as the delegable functions return <= 2000 rows

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    After further testing, I came to the same conclusion as you. Glad to see you solved the problem. 🙂

     

    Best Regards,

    Wearsky

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard