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

Filtering Data Source before Delegation

(0) ShareShare
ReportReport
Posted on by

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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard