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 / Search, Sort & Filter ...
Power Apps
Suggested Answer

Search, Sort & Filter capabilities

(1) ShareShare
ReportReport
Posted on by 27
I have a SharePoint list with 9 columns.

The columns are:
  1. Activity Date
  2. Client
  3. Country Program
  4. Activity
  5. Details
  6. Activity Category
  7. Application Stage
  8. Staff
  9. Status
  10. Attachment
 
Columns 2, 3, 6, 7, 8 & 9 are choice fields with dropdowns. Columns 4 and 5 are free text.
 
I am working on a Power App. How do I build Search, Sort, Filter & Bulk/Multiple entry capabilities into the app?

Thank you!
Categories:
  • Suggested answer
    Ravindra Jadhav Profile Picture
    342 Moderator on at
    Hii Hope you are doing great ❤,
     
    To build Search, Sort, Filter, and Bulk/Multiple entry capabilities in your Power Apps gallery using Power Fx formulas
     
    Search(Filter(
        YourSharePointList,
        (IsBlank(Dropdown_Client.Selected.Value) || Client.Value = Dropdown_Client.Selected.Value) &&
        (IsBlank(Dropdown_CountryProgram.Selected.Value) || CountryProgram.Value = Dropdown_CountryProgram.Selected.Value) &&
        (IsBlank(Dropdown_ActivityCategory.Selected.Value) || ActivityCategory.Value = Dropdown_ActivityCategory.Selected.Value) &&
        (IsBlank(Dropdown_ApplicationStage.Selected.Value) || ApplicationStage.Value = Dropdown_ApplicationStage.Selected.Value) &&
        (IsBlank(Dropdown_Staff.Selected.Value) || Staff.Value = Dropdown_Staff.Selected.Value) &&
        (IsBlank(Dropdown_Status.Selected.Value) || Status.Value = Dropdown_Status.Selected.Value)
    ),
        "Activity", "Details"
    )
    You can Follow this Approach 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav
     
  • OE-03080350-0 Profile Picture
    27 on at
    Hello @Ravindra,
     
    Thank a lot for your help. I have not entered the formular yet.
    Want to ask where I plug this in - in the Items property of the Gallery where my data is or in the Onselect property of TextSearchbox1??
    Also, does this formular also allow users of the app to sort using Activity Date (Ascending/Descending order)?
    Last but not least, how do I build the capability for multiple entries, so users do not have to enter data one at a time?
     
    Thank you!!
  • Ravindra Jadhav Profile Picture
    342 Moderator on at
    You have to use this formula on item property of gallery and you have to Chnages the names and Search TextInput Box name
    below is revisited formula 
    Sort(
        Search(
            Filter(
                YourSharePointList,
                (IsBlank(Dropdown_Client.Selected.Value) || Client.Value = Dropdown_Client.Selected.Value) &&
                (IsBlank(Dropdown_CountryProgram.Selected.Value) || CountryProgram.Value = Dropdown_CountryProgram.Selected.Value) &&
                (IsBlank(Dropdown_ActivityCategory.Selected.Value) || ActivityCategory.Value = Dropdown_ActivityCategory.Selected.Value) &&
                (IsBlank(Dropdown_ApplicationStage.Selected.Value) || ApplicationStage.Value = Dropdown_ApplicationStage.Selected.Value) &&
                (IsBlank(Dropdown_Staff.Selected.Value) || Staff.Value = Dropdown_Staff.Selected.Value) &&
                (IsBlank(Dropdown_Status.Selected.Value) || Status.Value = Dropdown_Status.Selected.Value)
            ),
            TextSearchBox.Text,
            "Activity", "Details"
        ),
        ID, 
        Descending
    )
    
     
  • OE-03080350-0 Profile Picture
    27 on at
    @Ravindra, here's the code I used
    Sort(
        Search(
            Filter(
                'SM Daily Act',
                (IsBlank(Dropdown_Client.Selected.Value) || Client.Value = Dropdown_Client.Selected.Value) &&
                (IsBlank(Dropdown_CountryProgram.Selected.Value) || CountryProgram.Value = Dropdown_CountryProgram.Selected.Value) &&
                (IsBlank(Dropdown_ActivityCategory.Selected.Value) || ActivityCategory.Value = Dropdown_ActivityCategory.Selected.Value) &&
                (IsBlank(Dropdown_ApplicationStage.Selected.Value) || ApplicationStage.Value = Dropdown_ApplicationStage.Selected.Value) &&
                (IsBlank(Dropdown_Staff.Selected.Value) || Staff.Value = Dropdown_Staff.Selected.Value) &&
                (IsBlank(Dropdown_Status.Selected.Value) || Status.Value = Dropdown_Status.Selected.Value)
            ),
            TextSearchBox1.Text,
            "Activity", "Details"
        ),
        'Activity Date',
        Descending
    )
     
    Here's the error message

    The expression was intended to filter the 'SM Daily Act' table based on various dropdown selections and a text search, then sort the filtered results by 'Activity Date' in descending order. However, there are multiple errors in the expression related to incorrect variable names, invalid arguments for functions like IsBlank and Search, and incompatible types for comparisons. These errors prevent the expression from executing correctly.

    What's wrong please??

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard