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 / Powerapps Filter and S...
Power Apps
Answered

Powerapps Filter and Search Gallery

(0) ShareShare
ReportReport
Posted on by 34

Hi,

 

Would like to do a filtering with the condition below:

a) ListOwner.Value = CurrentUserListOwner

b) Status.Value = Dropdown1.Selected.Value

c) wildcard search in MvNo, if searchTextbox.Text is blank display all the items with condition (a) and (b) 

jshuang_1-1718343441964.png

 

 

jshuang_0-1718343354414.png

By using the Filter function below, able to fulfill condition (a) and (b) mentioned above.

Gallery Items Properties: Filter(VehicleList, ListOwner.Value = CurrentUserListOwner && Status.Value = Dropdown1.Selected.Value)


Would like to do the filtering with all the 3 conditions above (wildcard search in MvNo, if searchTextbox.Text is blank display all the items with condition (a) and (b))

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @jshuang ,

     

    Please try this

    If(IsBlank(searchTextbox.Text),
    Filter(VehicleList, ListOwner.Value = CurrentUserListOwner && Status.Value = Dropdown1.Selected.Value),
    Filter(VehicleList, ListOwner.Value = CurrentUserListOwner && Status.Value = Dropdown1.Selected.Value&& searchTextbox.Text in MvNo)
    ) 

     

    Best Regards,

    Wearsky

  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @jshuang ,

    Try this - the structure is to give you some degree of Delegation

    With(
     {
     _Data:
     Filter(
     VehicleList, 
     ListOwner.Value = CurrentUserListOwner && 
     Status.Value = Dropdown1.Selected.Value
     )
     },
     Search(
     _Data,
     SearchTextbox.Text,
     MVNo
     )
    )

     

    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

  • CU14010518-0 Profile Picture
    34 on at

    Hi

     

    Thanks for the reply. 

     

    However, when i tried to search the MvNo it not showing the item

    jshuang_0-1718346163000.png

     

    without searching be like

    jshuang_1-1718346211460.png

     

  • CU14010518-0 Profile Picture
    34 on at

    Hi 

     

    Thanks for the reply.

     

    however i hit this error 

    jshuang_2-1718346340528.png

     

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    @jshuang ,

    Dangers of free-typing code - please see amended post.

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @jshuang ,

     

    May I ask how many items do you have in this list?

     

    Best Regards,

    Wearsky

  • CU14010518-0 Profile Picture
    34 on at

    Hi @WarrenBelz 

     

    This works for me!! Thank you!

  • CU14010518-0 Profile Picture
    34 on at

    Hi @v-xiaochen-msft 

     

    700+ as for now.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard