@e351445
Wich kind of data source you are connecting?
Please try this workaround, using Gallery.AllItems to avoid delegation error.
1. Add a gallery to display all sorted and filtered records of tblNewOportunidades, set Items property of gallery as below:
Sort(Filter(tblNewOportunidades,UO=DataCardValue.Selected),Ordem,Ascending)
2. set Default property of TextInput box:
Last(Gallery.AllItems).Ordem
Note: if there is no need to display the gallery, just set the visible property to false.
delegation threshold is 4
Sik