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 not getting all...
Power Apps
Answered

Filter not getting all records - CDS/Dataverse

(0) ShareShare
ReportReport
Posted on by 104

I have an entity called "Customer Rating Totals" with 1500+ records in Dataverse.

 

Of those 1500, 950 have a status of "Final". When I execute this code:

 

ClearCollect(FinalCustomerRatingCol, Filter('Customer Rating Totals', "Final" in 'Score Card Status'))

 

the collection "FinalCustomerRatingCol" only has 290 records in it. I don't understand why...

 

'Score Card Status' is a Choice field.

 

The Powerapps setting for data row limit is set at 500 (not sure if that has any impact here as the above code is delegable).

 

Thanks

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JT_Corrin 

    A quick solution is to create a view in dataverse and filter it on status. You can then use the view in your formulas as needed.

  • JT_Corrin Profile Picture
    104 on at

    Thanks for the workaround @Drrickryp - I've not worked with views in that way before and would much rather get to the route of my issue before trying your suggestion.

     

    I guess I'll open a ticket.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JT_Corrin 

    Before you submit a ticket, as an experiment set your data row limit to 1. If your formulas are truly delegatable, it should make no difference in the result.

  • JT_Corrin Profile Picture
    104 on at

    thanks for the suggestion, @Drrickryp. Turns out the "in" in my filter is none delegable. 

     

    My question then becomes how can I filter on a choice column? 

     

    I've tried wrapping it in a text function: Text('Score Card Status') = "Final"

     

    ...but that doesn't work.

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JT_Corrin 

    On a new screen, put a dropdown on the screen and a galley.

    Set the items property of the dropdown ["Final","etc"] where etc are the other choices. Make your items property of the gallery 

    Filter('Customer Rating Totals', 'Score Card Status'.Value=Dropdown1.Selected.Value)

     

  • Verified answer
    JT_Corrin Profile Picture
    104 on at

    Turns out I was just being an idiot, as usual.

     

    This is what I was doing:

    ClearCollect(FinalCustomerRatingCol, Filter('Customer Rating Totals', "Final" in 'Score Card Status'))

     

    When really I should have been doing:

    ClearCollect(FinalCustomerRatingCol, Filter('Customer Rating Totals', 'Score Card Status' = ScoreCardStatus.Final))

     

    I was confusing my column name with the actual Choices.

     

    Thanks to @Drrickryp for taking the time - talking it through always helps.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard