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 / Filter a gallery on va...
Power Apps
Unanswered

Filter a gallery on value in variable

(0) ShareShare
ReportReport
Posted on by 45

I have a gallery ModulesGallery that is populated from data source Modules_Locations. The gallery has 2 items, MIN and Status.
There is a button that onSelect populates a variable varFilterStatus with "Green".
I want the gallery to then be filtered to all records with Status="Green" so have the Items property of the gallery as 
Filter(Module_Locations,Status= varFilterStatus);
The ; at the end of the Filter function above has a red line under it with the error
Expected operator. We expect an operator such as +, *, or & at this point in the function.
I do not see that requirement in the syntax of the Filter function. Can someone please tell me what I am doing wrong.

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @murray7 

    Try Filter(Module_Locations,Status.Value= varFilterStatus);

  • murray7 Profile Picture
    45 on at

    Status.Value also gave an error. I have resolved the issue which was the fact Status had not been initialised when this screen was visible.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard