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.

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,927)