cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gaborszollosy
Helper II
Helper II

Filter multiple criteria problem

Hello there!

 

I'm trying to figure out using filter with multiple criteria, but I always get an error or warning in this case and I'm not sure what I'm doing wrong.

 

Can you please show me how the filter can be used on several criteria at once on a DataTable? 

I'm trying to filter: Search results from: edt_cegnev_kereso.Text, and in this particular case I want to show results if the User().Email is the same in the Recruiter column of the Data Source, References. What's not even in my Filter formula yet is that I also want to limit only new entries if the chk_onlynew.Value=true in which case the filter should check the Done column, and only return a result if the cell value is Not("Done").

 

Thanks in advance!!!

 

problem.png

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @gaborszollosy ,

Assuming the top filter returns less than your Delegation limit, this should work

With(
   {
      wList:
      Filter(
         References,
         StartsWith(
            CompName,
            edt_cegnev_keroso.Text
         ) 
      )
   },
   Filter(
      wList,
      User().Email in Recruiter &&
      (!chk_onlynew.Value || !Done)
   )
)

 

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
WarrenBelz
Super User
Super User

Hi @gaborszollosy ,

Assuming the top filter returns less than your Delegation limit, this should work

With(
   {
      wList:
      Filter(
         References,
         StartsWith(
            CompName,
            edt_cegnev_keroso.Text
         ) 
      )
   },
   Filter(
      wList,
      User().Email in Recruiter &&
      (!chk_onlynew.Value || !Done)
   )
)

 

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.

Thank you @WarrenBelz!

 

What worked, was based on your solution, like so:

 

With( {

wList: Filter( References, StartsWith( CompName, edt_cegnev_kereso.Text ) ) }, Filter( wList, (If(chk_ready_only.Value=true, Not("Done" in Done),"" in Done) && User().Email in Recruiter)))

 

Thank you so much for your help!

@gaborszollosy ,

Pretty much the logic I posted although I assumed Done was a Boolean value as you used Not().

 

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.

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,037)