I wanna filter a gallery based on a user().Email and if is not, show the only which he created.
And I try this code:
If(User().Email="USER@ADMIN.COM";Despesas;Filter(Despesas;StartsWith(Solicitante;TextInput1.Text) || ID = DropDown1.Selected.ID || 'Status de pagamento'.Value=ComboBox4.Selected.Value;SortByColumns(Despesas;"ID";Descending);'Criado por'.Email = varUser.Email))
My goal is:
If is the USER@ADMIN.COM he can filter by name or ID or "status de pagamento", and if is not she only show the items he created.