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

Filter in Gallery based on toggle value from SharePoint list

I'm creating a canvas app, the source is a SharePoint list.

On one of the screens I created, there's a Card with source a yes/no column.

 

Card : Fully approved_DataCard1

     Default = ThisItem.'Fully approved'

Toggle: FullyApprovedToggle

 

On one of my screens, I added a Gallery, source is the same SP list. Here I want to display only those items that aren't fully approved yet, so where I assume FullyApprovedToggle.Value = False.

When adding the fields in the Gallery, I add the field Fully Approved, which is added as ThisItem.'Fully approved'

 

I want to create a filter on Gallery Items level, the closest I get is: 

Filter('TA Shipment REQ2', !'Fully approved')

 

Which works but gives me an alert: 

Delegation warning. This part "Filter" of this formula might not work correctly on large data sets.

 

Can I improve my filter so I don't get this warning anymore?

 

All help would be appreciated!

 

Jimmy

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft
Microsoft

Hi @jimmydebie ,

 

Please use Filter('TA Shipment REQ2', 'Fully approved' = false) instead. OData doesn't recognize '!' within the filter which as a result turns the query into non delegable. The warning should disappear by doing that 🙂

 

Please remember to mark the answer as a verified solution if the reported behavior is resolved!

 

Best regards,

Filipe Relvas

View solution in original post

2 REPLIES 2
Microsoft
Microsoft

Hi @jimmydebie ,

 

Please use Filter('TA Shipment REQ2', 'Fully approved' = false) instead. OData doesn't recognize '!' within the filter which as a result turns the query into non delegable. The warning should disappear by doing that 🙂

 

Please remember to mark the answer as a verified solution if the reported behavior is resolved!

 

Best regards,

Filipe Relvas

View solution in original post

Thanks @FilipeRelvas , this solved my issue.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (26,754)