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 gallery with a ...
Power Apps
Answered

Filter gallery with a toggle

(0) ShareShare
ReportReport
Posted on by 171

I have a gallery that is connected to a dataverse table. In this table I have a field of type yes/no and now I want to filter the gallery so that it shows only the rows that are set to yes by a toggle. What is the best way to do this?

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @alt88,

    Set the Items property:

     

    Filter(Table,Yes/No_Field=If(Toggle1.Value,'OptionName(TableName)'.Yes,'OptionName(TableName)'.No))

    If you only want to filter gallery when the Toggle is true, you could use the following formula:

    If(Toggle1.Value,Filter(Table,Yes/No_Field='OptionName(TableName)'.Yes),Table)

     

     

     

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard