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 Apps
Answered

Add Search()

(0) ShareShare
ReportReport
Posted on by

Hello Guys!

I have in power apps, sharepoint list with name Compras_RNV_APP and need to add Search() to my gallery.
My font is Compras_RNV_APP and need to connect my TextInput2 and column sharepoint list "NumRC"

 

My formule items is:

SortByColumns(

    With(
        {
            prefilter: Filter(
                Compras_RNV_APP;
                AnaliseADM.Value = "VALIDADO PELA ADMINISTRAÇÃO" && ((UC.Value = DropdownCanvas2_8.Selected.Value) || IsBlank(DropdownCanvas2_8.Selected.Value)) && ((Execucao.Value = DropdownCanvas2_9.Selected.Value) || IsBlank(DropdownCanvas2_9.Selected.Value))
            )
        };
        Filter(
            prefilter;(IsBlank(Fornecedor) || IsBlank(NumPedido) || IsBlank(DataPEDIDO) || IsBlank(ValorUnitSuprimentos))
            && (!IsBlank(NCM) && !IsBlank(NumRC) && !IsBlank(CodigoZIP) && !IsBlank(DataRC))
        )
    )
    ;
    "Created";
    SortOrder.Ascending
)
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,662 Most Valuable Professional on at

    Hi @xFelipeDuartee ,

    You could do this

    SortByColumns(
     With(
     {
     prefilter: 
     Filter(
     Compras_RNV_APP;
     AnaliseADM.Value = "VALIDADO PELA ADMINISTRAÇÃO" && 
     (
     UC.Value = DropdownCanvas2_8.Selected.Value) || 
     Len(DropdownCanvas2_8.Selected.Value) = 0
     ) && 
     (
     Execucao.Value = DropdownCanvas2_9.Selected.Value || 
     Len(DropdownCanvas2_9.Selected.Value) = 0
     )
     )
     };
     Filter(
     prefilter;
     (
     IsBlank(Fornecedor) || 
     IsBlank(NumPedido) || 
     IsBlank(DataPEDIDO) || 
     IsBlank(ValorUnitSuprimentos)
     ) && 
     !IsBlank(NCM) && !IsBlank(NumRC) && !IsBlank(CodigoZIP) && !IsBlank(DataRC) &&
     (
     Len(TextInput2.Text) = 0 ||
     TextInput2.Text in NumRC
     )
     )
     );
     "Created";
     SortOrder.Ascending
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • xFelipeDuartee Profile Picture
    on at

    The logic is correct; there was just a minor formatting error, but I fixed it, and it worked perfectly! Thank you very much! 😊

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 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard