Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Search, Sort & Filter capabilities

(1) ShareShare
ReportReport
Posted on by 12
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!
  • CU01090320-1 Profile Picture
    12 on at
    Search, Sort & Filter capabilities
    @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??
  • Ravindra Jadhav Profile Picture
    263 Super User 2025 Season 1 on at
    Search, Sort & Filter capabilities
    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
    )
    
     
  • CU01090320-1 Profile Picture
    12 on at
    Search, Sort & Filter capabilities
    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!!
  • Suggested answer
    Ravindra Jadhav Profile Picture
    263 Super User 2025 Season 1 on at
    Search, Sort & Filter capabilities
    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
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard