cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Search and filtering a Galery

Hi all,

 

I found a lot of similar posts, but didn't get my issue solved.

What I'm try to do is to filter my galery (source = SharePoint list).

 

When I try the solutions separeted from each other, it works, but I can't combine it.

 

What I have is:

An input field that I use for searching.

When I set the Items property from my galery on: 

 

Search(SharePoint_listname; TextInput2.Text; "Title")

 

It works OK. I can search on the title.

I've in my SharePoint list a field named: "Project Status". This is a dropdown list with a couple of values.

When I set my galery Items property on:

 

Filter(
SharePoint_listname;
'Status project'.Value = "Preparing" ||
'Status project'.Value = "Ongoing"
)

 

This works also OK.

 

But I want those two options (search and filter) combined. So how can I search on title for all projects with the status Preparing and Ongoing?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Search and filtering a Galery

Hi @dennisb88 ,

Try

Filter(
   SharePoint_listname;
   (
      'Status project'.Value = "Preparing" ||
      'Status project'.Value = "Ongoing"
   ) &&
    TextInput2.Text in Title  
)

 

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.

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Search and filtering a Galery

Hi @dennisb88 ,

Try

Filter(
   SharePoint_listname;
   (
      'Status project'.Value = "Preparing" ||
      'Status project'.Value = "Ongoing"
   ) &&
    TextInput2.Text in Title  
)

 

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.

View solution in original post

Highlighted
Super User
Super User

Re: Search and filtering a Galery

You can use startswith function;

Filter( SharePoint_listname; Startswith ( 'Status project'.Value; Textinput2.Text) || Startswith( Title; Textinput2.Text) )

 

With that, you can search ongoing , preparing in the Textinput 2

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

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.

Highlighted
Frequent Visitor

Re: Search and filtering a Galery

Thanks @WarrenBelz ,

 

That was the solution!

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,426)