Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Filter using toggle button not working along with sort

I'm tying to filter the gallery by the person who created items, and hide if the status is "Checked Out" using a toggle button. It showing error like below could you please assist.




Super User
Super User


Sort(Filter('Visitor Log','Created By'.Email = User().Email && Status.Value<>"ChekedOut"),"ID",Ascending),

Sort(Filter('Visitor Log','Created By'.Email = User().Email),"ID",Ascending))

Helper I
Helper I

Thank you @zmansuri  for your quick update


I'm getting a delegation warning like below and the gallery not showing any value while toggle is true or false.






If you have less than 2000 records you can ignore delegation. Code is correct make sure you are using corrects column names. Try not filtering at all to see the output

Helper I
Helper I

The records are below 2k. 

When i apply 

Sort(Filter('Visitor Log','Created By'.Email = User().Email),"ID",Ascending) it showing items,

however the gallery is empty when i use the code you shared.

Instead of "Status" i can filter if "Check out date" is empty also.

Please advice.

Helpful resources

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 (1,772)