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:
I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard