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 mu...
Power Apps
Answered

Filter Gallery with multiple Toggles

(0) ShareShare
ReportReport
Posted on by 262

HI All,

 

I have a gallery with four toggles.  I would like to filter the gallery with a combination of all four.  I am currently using the following:

With({zFilter : Filter(tbl,Assigned="Person")},
Filter(zFilter,
If(TogPrep.Value = true,'Column'="In Preparation",true) ||
If(TogAwaiting.Value = true,'Column'="Awaiting Approval",true) ||
If(TogApproved.Value = true,'Column'="Approved",true) ||
If(TogCompleted.Value = true,'Column'="Completed",true)
)
)

 

It will filter but only one at time.  Any help would be appreciated.

 

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Skybluekid ,

     

    You can refer to my method in this post. Filter gallery with multiple buttons - Power Platform Community (microsoft.com)

    Create a collection about toggles and filter the collection with value is true.

     

    Best regards,

    Rimmon

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Skybluekid ,

     

    Please try this.

    1/OnVisible of screen.

    ClearCollect(COL,{A:"In Preparation",B:TogPrep.Value},{A:"Awaiting Approval",B:TogAwaiting.Value},{A:"Approved",B:TogApproved.Value},{A:"Completed",B:TogCompleted.Value})

     

    2/Add below formula to OnChange of each toggle.

    Patch(COL,LookUp(A="In Preparation"),{B:Self.Value})

    Similar to other toggles.

     

    3/Items of gallery.

    With({zFilter : Filter(tbl,Assigned="Person")},
    Filter(zFilter,
    'Column' in Filter(COL,B=true,A)
    ))

     

     

     

    Best regards,

    Rimmon

  • Verified answer
    BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at
    With({zFilter : Filter(tbl,Assigned="Person")},
    Filter(zFilter,
    (TogPrep.Value &&'Column'="In Preparation") ||
    (TogAwaiting.Value &&'Column'="Awaiting Approval") ||
    (TogApproved.Value &&'Column'="Approved") ||
    (TogCompleted.Value &&'Column'="Completed")
    )
    )

     

    Try this

  • Skybluekid Profile Picture
    262 on at

    @BhaskarDhone Thank you it works.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard