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 / How to filter and sear...
Power Apps
Answered

How to filter and search in power apps

(0) ShareShare
ReportReport
Posted on by 202

Hi All 

 

Please help I have made changes to restrict my app showing information to a user based on a default branch now my issue is 

 

1.I need to search multiple columns after the status of incident and it should search by Location ,Injury classification ,on site/offsite etc :  Filter('[rp].[Form InjuriesOnDutyF]',Siteofincident = varBranch && 'txt.InjuriesOnduty.Text'.Text in StatusOfincident)

 

2.I need to sort the results in descending order using an Id number which is incremental number so that it sorts the last number created/ saved  first below it must 16 then15

Filter('[rp].[Form InjuriesOnDutyF]',Siteofincident = varBranch && 'txt.InjuriesOnduty.Text'.Text in StatusOfincident),Id,Descending)

the above just wont work ,i tried to add a sortbycolumn with no luck.Filter issue.PNG

 

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Use

    Sort(Filter('[rp].[Form InjuriesOnDutyF]',Siteofincident = varBranch && 'txt.InjuriesOnduty.Text'.Text in StatusOfincident),Id,Descending)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • rodzmaz81 Profile Picture
    202 on at

    @eka24 thanks can you also me with search of multiple columns including Status Of incident  part Filter('[rp].[Form InjuriesOnDutyF]',Siteofincident = varBranch && 'txt.InjuriesOnduty.Text'.Text in StatusOfincident)

  • eka24 Profile Picture
    20,925 on at

    use:

    Filter(Search('[rp].[Form InjuriesOnDutyF]',Siteofincident ,txt.InjuriesOnduty.Text,"StatusOfincident","Column2","Column3"),Siteofincident=varBranch )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • eka24 Profile Picture
    20,925 on at

    Are you ok with the Search

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • rodzmaz81 Profile Picture
    202 on at

    @eka24 not yet I still get errors

     I even tried Filter(Search('[rp].[Form InjuriesOnDutyF]',Siteofincident,txt.InjuriesOnduty.Text,"COIDclaimnumber","BodyPart"),Siteofincident=varBranch )

     

     Search error.PNG

  • eka24 Profile Picture
    20,925 on at

    Please look at the formula very well.

    What is the name of the search Text box,

    Change SearchTextBox to the name of your search Textbox

     

    Filter(Search('[rp].[Form InjuriesOnDutyF]',Siteofincident,SearchTextBox.Text,"COIDclaimnumber","BodyPart"),Siteofincident=varBranch )

  • rodzmaz81 Profile Picture
    202 on at

    @eka24  not sure what is happening i gor an error i renamed the SearchBoxAnother Error.PNG I got an error 

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Please check the spelling of the column names if they are all ok. The formula looks fine

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • rodzmaz81 Profile Picture
    202 on at

    @eka24  Thank you so 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard