web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegatoin (in, or)
Power Apps
Unanswered

Delegatoin (in, or)

(0) ShareShare
ReportReport
Posted on by 59

Hey,

 

i just took over a project and am lost in this code

 

Filter(
'Appels d''offres',
 varUserEmail in Juristes.Email Or varUserEmail in 'Responsables RSE'.Email Or varUserEmail in 'Pilotes Opérationnels'.Email And 
 Statut.Value = If([@toogleEnCours].Value, "En cours", "Terminé")
 ),

 

 How can i overcome the delegation of In and Or?

Thank you

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,458 Most Valuable Professional on at

    Hi @LoopinG2023 ,

    I assume your data source is SharePoint. I have two questions - are Juristes'Responsables RSE' and 'Pilotes Opérationnels' single or multiple value Person fields and what is toogleEnCours ?

  • LoopinG2023 Profile Picture
    59 on at

    Hey, they are single value, and toogleEnCour is a toogle item

  • WarrenBelz Profile Picture
    156,458 Most Valuable Professional on at

    Hi @LoopinG2023 ,

    Try this format

    With(
     {
     _Toogle:
     If(
     toogleEnCours.Value, 
     "En cours", 
     "Terminé"
     )
     },
     Filter(
     'Appels d''offres',
     (
     Juristes.Email = varUserEmail Or 
     'Responsables RSE'.Email = varUserEmail Or 
     'Pilotes Opérationnels'.Email = varUserEmail
     ) And Statut.Value = _Toogle
    )

     

    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

  • LoopinG2023 Profile Picture
    59 on at

    am getting the error "incompatible types for comparison, These types can't be compare: table, text"

  • WarrenBelz Profile Picture
    156,458 Most Valuable Professional on at

    Hi @LoopinG2023 ,

    That is why I asked you the initial question - the Person fields must be multiple value if you are getting that error and if this is the case, you have a Delegation issue. I am also assuming that Statut is a Yes/No field.

    You can maybe partially address the issue with

    With(
     {
     _Toogle:
     If(
     toogleEnCours.Value, 
     "En cours", 
     "Terminé"
     )
     },
     With(
     {
     _Data:
     Filter(
     'Appels d''offres',
     Statut.Value = _Toogle
     )
     },
     Filter(
     _Data,
     varUserEmail in Juristes.Email = Or 
     varUserEmail in 'Responsables RSE'.Email Or 
     varUserEmail in 'Pilotes Opérationnels'.Email
     )
     )
    )

    but you will need the top toggle filter to return record numbers under your Data Row Limit to filter on all available records.

     

    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

     

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard