web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Buscar datos con Searc...
Power Apps
Answered

Buscar datos con SearchInput

(1) ShareShare
ReportReport
Posted on by 115
Hola
 
Como puedo hacerle para que mi SearchInput1_Ag busque en mi tabla TableTickets_Ag ya sea cualquier campo como Agente, Categoria, Usuario, Detalles
 
 
En el campo Items de mi Tabla tengo 
SortByColumns(Tickets; "field_2"; SortOrder.Descending)
I have the same question (0)
  • Suggested answer
    Haque Profile Picture
    3,653 on at
    Hola, por favor prueba esto
     
    SortByColumns(
        Filter(
            Tickets,
            Or(
                Contains(Lower(Agent), Lower(SearchInput1_Ag.Text)),
                Contains(Lower(Category), Lower(SearchInput1_Ag.Text)),
                Contains(Lower(User), Lower(SearchInput1_Ag.Text)),
                Contains(Lower(Details), Lower(SearchInput1_Ag.Text))
            )
        ),
        "field_2",
        SortOrder.Descending
    )
    
     
  • IS-12031616-0 Profile Picture
    115 on at
    Probe el codigo que me mencionas pero me salen los siguientes errores
     
    Número de argumentos no válido: se recibieron 1, se esperaban 2 o más.
     
    y cambie todas las comas (,) por punto y coma (;) 
     
    "Contains" es una función desconocida o no admitida.
  • Verified answer
    Haque Profile Picture
    3,653 on at
    Lo siento, olvidé que la función Contains no es compatible con PowerApps. Usemos la función de búsqueda. Si la búsqueda falla, también puedes usar la función Find.
     
    SortByColumns(
        Filter(
            Tickets;
            Or(
                Search(Lower(Agent); Lower(SearchInput1_Ag.Text)) > 0;
                Search(Lower(Category); Lower(SearchInput1_Ag.Text)) > 0;
                Search(Lower(User); Lower(SearchInput1_Ag.Text)) > 0;
                Search(Lower(Details); Lower(SearchInput1_Ag.Text)) > 0
            )
        );
        "field_2";
        SortOrder.Descending
    )
     
  • Verified answer
    11manish Profile Picture
    3,333 on at
    try below :
     
    SortByColumns(
        Filter(
            TableTickets_Ag;
            IsBlank(SearchInput1_Ag.Text) ||
            StartsWith(Agent; SearchInput1_Ag.Text) ||
            StartsWith(Category; SearchInput1_Ag.Text) ||
            StartsWith(User; SearchInput1_Ag.Text) ||
            StartsWith(Details; SearchInput1_Ag.Text)
        );
        "field_2";
        SortOrder.Descending
    )
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard