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

Delegation warning

hello, 

 

I have a DELEGATION WARNING here, how can I solve? 

 

Filter(
Desks,
Not(
Title in Filter(
'Desk Reservations',
'Check Out From' >= startTime && 'Check Out To' <= endTime || 'Check Out From' <= endTime && 'Check Out To' >= endTime
).DeskText
) && Active = 1

)

 

ashj100_0-1656800103613.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @ashj100 ,

You can do this, but are limited to the newest (delegation limit - 500 to 2,000) of Reservations and Active Desks

With(
   {
      wDesks:
      Filter(
         Sort(
            Desks,
            ID,
            Descending
         ),
         Active = 1
      ),
      wReserve:
      Sort(
         'Desk Reservations',
         ID,
         Descending
      )
   },
   Filter(
      wDesks,
      !(
         Title in 
         Filter(
            wReserve,
            (
               'Check Out From' >= startTime && 
               'Check Out From' <= endTime
            ) ||
            (
               'Check Out To' >= start && 
               'Check Out To' <= endTime
            )
         ).DeskText
      )
   )
)

as neither in nor Not are Delegable

 

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.

Visit my blog Practical Power Apps

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @ashj100 ,

You can do this, but are limited to the newest (delegation limit - 500 to 2,000) of Reservations and Active Desks

With(
   {
      wDesks:
      Filter(
         Sort(
            Desks,
            ID,
            Descending
         ),
         Active = 1
      ),
      wReserve:
      Sort(
         'Desk Reservations',
         ID,
         Descending
      )
   },
   Filter(
      wDesks,
      !(
         Title in 
         Filter(
            wReserve,
            (
               'Check Out From' >= startTime && 
               'Check Out From' <= endTime
            ) ||
            (
               'Check Out To' >= start && 
               'Check Out To' <= endTime
            )
         ).DeskText
      )
   )
)

as neither in nor Not are Delegable

 

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.

Visit my blog Practical Power Apps

 

ashj100
Frequent Visitor

worked! 

thank you 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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