cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kishama
Helper I
Helper I

Search in added columns Search(AddColumns())

Hi,

I have added columns to my datatable, but now I don't know how to search for those columns. Your help please. Thank you very much.

I want to search by my "Usuario"column that I have created

AddColumns(
    Search(
        tbcliente;
        txtbuscar_cliente_lista.Text;
        "idcliente";
        "cliente";
        "ruc";
        "idusuario"
    ) As buscarclientes;
    "Usuario";
    LookUp(
        tbusuario;
        idusuario = buscarclientes[@idusuario]
    ).usuario
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @kishama ,

Try this

Search(
   AddColumns(
      tbcliente;
      "Usuario";
      LookUp(
         tbusuario;
         idusuario = buscarclientes[@idusuario]
      ).usuario
   );
   txtbuscar_cliente_lista.Text;
   "idcliente";
   "cliente";
   "ruc";
   "idusuario";
   "Usuario"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @kishama ,

Try this

Search(
   AddColumns(
      tbcliente;
      "Usuario";
      LookUp(
         tbusuario;
         idusuario = buscarclientes[@idusuario]
      ).usuario
   );
   txtbuscar_cliente_lista.Text;
   "idcliente";
   "cliente";
   "ruc";
   "idusuario";
   "Usuario"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Hi @WarrenBelz 

It worked very well for me. I only had to change the "buscarclientes" for the "tbclient" table. "buscarclientes" was a variable.

This worked perfect. Now I have new challenges to do. Thank you very much

 

Search(
   AddColumns(
      tbcliente;
      "Usuario";
      LookUp(
         tbusuario;
         idusuario = tbcliente[@idusuario]
      ).usuario
   );
   txtbuscar_cliente_lista.Text;
   "idcliente";
   "cliente";
   "ruc";
   "idusuario";
   "Usuario"
)

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,093)