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

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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,714)