web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Toggle to filter Gallery

(0) ShareShare
ReportReport
Posted on by 240

Hi All,

 

I would like to use a toggle that when checked shows all records in my gallery. When unchecked it shows everything apart from those that are 'Complete' within my Status column (or the other way round but then i would want the default on opening for complete not to be shown).

 

I'm wondering if this is possible as i already have a separate filter on my app that has a search bar with the below sat within the items properties of my gallery.

 

If(IsBlank(Search2_inp.Text),Improvement,Filter(Improvement,(Search2_inp.Text in Status) || (Search2_inp.Text in 'Owner(s)') || Search2_inp.Text in Topic))

 

Any help as always is much appreciated!

Thanks

Chris

I have the same question (0)
  • Akser Profile Picture
    1,546 Moderator on at
    Re: Toggle to filter Gallery

    Hi @Appy1,

     

    Filter(Improvement,
    IsBlank(Search2_inp.Text) Or Search2_inp.Text in Status Or Search2_inp.Text in 'Owner(s)' Or Search2_inp.Text in Topic,
    CheckBox.Value = true Or YourStatusColumn = "Complete"
    )
  • CC-19121430-0 Profile Picture
    240 on at
    Re: Toggle to filter Gallery

    Hi Akser,

    Thanks for this, it is very close to working!

    I have amended my gallery items properties to what you posted.

    However the gallery is still showing "Completed" records (sorry amended it from "Complete" to "Completed" after your reply).

    Appy1_0-1674134340474.png

     

    Many thanks

    Chris

  • CC-19121430-0 Profile Picture
    240 on at
    Re: Toggle to filter Gallery

    @Akser  - I would really like one toggle to show everything and the other to show everything minus "Completed".

  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at
    Re: Toggle to filter Gallery

    Hi @Appy1,

    Do you mean this?

    Filter(Improvement,
    IsBlank(Search2_inp.Text) Or Search2_inp.Text in Status Or Search2_inp.Text in 'Owner(s)' Or Search2_inp.Text in Topic,
    CheckBox.Value = true Or YourStatusColumn <> "Completed"
    )

     

  • CC-19121430-0 Profile Picture
    240 on at
    Re: Toggle to filter Gallery

    Hi @Akser 

    Thank you very much that works now 🙂

    Thanks

    Chris

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Toggle to filter Gallery

    @Appy1

    With({_items:Filter(Improvement, IsBlank(Search2_inp.Text) || (Search2_inp.Text in Status) || (Search2_inp.Text in 'Owner(s)') || Search2_inp.Text in Topic)},

    If(Toggle1.Value, Filter(_items, Status="Completed", _items)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 381 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard