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 / toggle controls filter...
Power Apps
Unanswered

toggle controls filtering for 2 galleries

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

Looked through other responses and couldn't quite find the answer I was looking for... Hoping someone can help. Thanks in advance.

 

I am building a tracker for items that would fall under 2 main parent categories: 1) "FinishedGoods" & 2) "Components". There is a sharepoint list where the data resides.

 

I am displaying my items in 2 different galleries. One gallery shows items labeled as "Open" in my sharepoint list while the other gallery shows items marked with "done". At any given moment there could be items from both parent categories in the galleries. I have this as the default state right now... (screenshot below)

 

LAXAero_1-1660858641212.png

 

Request/ Need info on:

I want to enable the toggles to filter out the items based on either "FinishedGoods" or "Components"

 

Perhaps, the default state is having both toggles on and all data is shown... and when one is disabled, that corresponding data is removed.

 

Please advise...

 

Thanks in advance.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @LAX-Aero 

    Items property gallery1

     

    With({_splist:Filter(splist, ???="To-do')}, // ??? column has To-do and Completed as values
     If(
     Toggle1.Value,Filter(
     _splist, Category = "FinishedGoods" // or Category.Value if choice
     ),_splist, 
     )
    )

     

    Items property gallery2

     

    With({_splist: Filter(splist, ??? = "Completed")},
     If(
     Toggle2.Value, Filter(
     _splist, Category = "Components"
     ), _splist
     )
    )

     

  • LAX-Aero Profile Picture
    2 on at

    Thanks for the reply... I got it to work with your suggestion. Cheers!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @LAX-Aero 

    If it answered your question ,please mark it as solved so others can find it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard