and if I apply this filter on my data I would expect a count of 6, but I only get 3:
CountRows(Filter(Leads, firstname = "Aaron"))
The queries above were just tests, but the main thing I am trying to do is LookUp a specific record from the DataSource using a LeadId and then show a few values from that Lead in a form (name, email, etc.). I've tried three different Lead Ids, one of them works, while the other two do not return any data (even though I can see values in CRM). I'm guessing that the 500 record limit is in place still and that these records are not in my DataSource.
So I'm guessing that delegation isn't working or I'm doing something wrong?
Hi @Shannon, in regards to the first part of your question, a CountRows will only ever return a maximum value of 500 irrespective of whether the data source is delegable or not. This is because CountRows is not (yet!) a delegable function.
However, FIlter is a delegable function so you should get all 6 of your Aarons back and not just 3. In your expression, the CountRows comes logically after the Filter so that it should not affect the delegation of the filter operation.
I hope someone from the PowerApps team will pick up on your question.