Hi
I've a textbox and wanna filter a gallery with it.
My formula:
With({Controle:ControleDespesas; Enderecos: ENDERECOS};
Sort(
Filter(Controle;
Ano = Text(AnoEscolhido);
Despesa = DespesaEscolhida;
txtbusca.Text = Blank() Or RefIDEnd = LookUp(Enderecos;txtbusca.Text in Cidade).Idend || LookUp(Enderecos;txtbusca.Text in Endereco).Idend
);RefIDEnd;Ascending)
)
My screen:

The textbox (txtbusca) and filter is not working for "Cidade" and "Endereco".
What I did wrong?
I've to filter "ControleDespesas" and textbox need to search in another sharepoint list named "ENDERECOS". The field of "IDEnd" from "ENDERECOS" is number and make reference to field "RefIDEnd" from "ControleDespesas".
In gallery the fields Cidade" and "Endereço" are lookup datas :
Endereço: LookUp(ENDERECOS;Idend=ThisItem.RefIDEnd).Endereco
Cidade: LookUp(ENDERECOS;Idend=ThisItem.RefIDEnd).Cidade
My sharepoint lists are as bellow:
ENDERECOS:

ControleDepesas:

RefIDEnd = IDEnd
Thanks in advance