Skip to main content

Notifications

Community site session details

Community site session details

Session Id : D8AmJ38r1UleePMz2B5E9K
Power Apps - Building Power Apps
Answered

Powerapps Filter and Search Gallery

Like (0) ShareShare
ReportReport
Posted on 14 Jun 2024 05:51:08 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))

 

  • CU14010518-0 Profile Picture
    34 on 14 Jun 2024 at 07:01:14
    Re: Powerapps Filter and Search Gallery

    Hi @v-xiaochen-msft 

     

    700+ as for now.

  • CU14010518-0 Profile Picture
    34 on 14 Jun 2024 at 06:59:46
    Re: Powerapps Filter and Search Gallery

    Hi @WarrenBelz 

     

    This works for me!! Thank you!

  • v-xiaochen-msft Profile Picture
    on 14 Jun 2024 at 06:44:47
    Re: Powerapps Filter and Search Gallery

    Hi @jshuang ,

     

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

     

    Best Regards,

    Wearsky

  • WarrenBelz Profile Picture
    146,508 Most Valuable Professional on 14 Jun 2024 at 06:30:53
    Re: Powerapps Filter and Search Gallery

    @jshuang ,

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

  • CU14010518-0 Profile Picture
    34 on 14 Jun 2024 at 06:25:49
    Re: Powerapps Filter and Search Gallery

    Hi 

     

    Thanks for the reply.

     

    however i hit this error 

    jshuang_2-1718346340528.png

     

  • CU14010518-0 Profile Picture
    34 on 14 Jun 2024 at 06:23:40
    Re: Powerapps Filter and Search Gallery

    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

     

  • Verified answer
    WarrenBelz Profile Picture
    146,508 Most Valuable Professional on 14 Jun 2024 at 05:56:35
    Re: Powerapps Filter and Search Gallery

    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

  • v-xiaochen-msft Profile Picture
    on 14 Jun 2024 at 05:55:37
    Re: Powerapps Filter and Search Gallery

    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

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,342 Most Valuable Professional

Leaderboard
Loading started
Loading complete