Greetings!
I have a list (SharePoint Online) with and a PowerApps form, where I replaced text field with dropdown, like in this great video:
https://www.youtube.com/watch?v=43ekj5MlNJU
Field changed by Shane Young is like lookup: he deletes text input and replaces with dropdown; dropdown values are requested by power apps.
I added empty value (with "-" in title), and filter related items from same list:
SortByColumns(
Filter(
[@'MyList'],(FieldValue="-" || FieldValue=DataCardValue1.Text)
),
"DocumentNumber", Ascending
)
DataCardValue1.Text is a Key value on my form, so I get only items that have same value in FieldValue that I have in DataCardValue1.Text (or dash, if there is no related items at all).
Here is dropdown example on Edit form:

and here it is in PowerApps editor:

Now I generated 9'000 test items in my text environment and get this error on PowerApps form:

The requested operation in invalid .
The attempted operation is prohibited because it exceeds the list view threshold.
As I understand one of the operations in non-delegable.. How can I refactor this formula to support more then 5'000 items?
Best regards