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 / Many toogle buttons
Power Apps
Answered

Many toogle buttons

(0) ShareShare
ReportReport
Posted on by 16

I am first getting started with Power Apps, and have a question 🙂
If I have several toogle buttons, to show different states of support tickets, how do I show the status for the toogle buttons that are true.

I have this code for one single toggle button, but can't figure out how to do if I want to display the result for two toogle buttons that are true.

If(
Hold.Value=true;Filter('support'; "Hold" in Status.Value);
Started.Value=true;Filter('support'; "Started" in Status.Value);

Closed.Value=true;Filter('support'; "Closed" in Status.Value)
)

Thank you!!

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

    Hi @TorbenSBendixen 

    Here is a suggestion for your app.  The upper left hand corner has a small gallery that contains the choices as the item property (in this case, ["France","Germany","Mexico"]) and a toggle. The formulas for the gallery OnSelect property and the default toggle is below it in red.  The principle behind it is that a temporary collection is created when one of the toggles is selected.  Items are added or removed from the collection by selecting the toggle for the country.  The temporary collection created filters the big gallery to the right.

    The big gallery on the right has its items formula above it.  It filters the main list by the temporary collection created by selecting the toggles in the small gallery.  1.jpg

  • TorbenSBendixen Profile Picture
    16 on at

    That is a great idea, thank you!


    I have made the gallery of "status" like this, in order to get the different values from my sharepoint list:
    SortByColumns(Distinct('support';Status.Value);"Result")

    That gives me the problem, that I can't get your suggested code to work.
    Any idea how to proceed?

  • TorbenSBendixen Profile Picture
    16 on at

    After messing around most of the day, I finally think I figured it out!

    Thank you very much for your help!!

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @TorbenSBendixen 

    For anyone else using Distinct() for the formula for Items in the small gallery.  Instead of "Value" if you hard code the choices, you will need to use "Result" in the formulas:1.jpg

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard