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 / Filtering a dropdown w...
Power Apps
Unanswered

Filtering a dropdown with a toggle

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone.  I am really struggling filtering a dropdown with a toggle.  This is the code I am using on a gallery and its working correctly.  

 

'If(varUser.Mail = "zzz@zzz.com",SortByColumns(Filter(Game_view_powerappss,StoreID= 165),If(Toggle4_1.Value,"cr3db_seqorder","cr3db_gamenameandmodifier"),Ascending)'

 

I am missing a step in using that code in a dropdown.  Any help would be amazing, thank you!

 

Chris

Categories:
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Hi @Anonymous , 

    I am not sure I understand your question. Are you saying you want to use the same formula in the Items property of a toggle? Or something else?

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Microsoft Certified Trainer MCT

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @PowerAddict Hi and thank you for your quick reply. When I use that code in a drop down, I am showing no data in The drop down, but no errors. I would like it to show the column gamenameandmodifier, but sort it alphabetically when the toggle is in one position and seqorder when the toggle is in the other position. It’s working correctly on the gallery but I cannot get the drop-down to show any information. 

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Do you actually see records in the dropdown but with no labels or does the dropdown not have any records when you try to expand it?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PowerAddict .  I deleted my dropdown and inserted a new one using the same code, and I am now seeing items in the list.  The list is now working alphabetically, but when I try sequentially, it appears to be random.  The seqorder column is a whole number column, and like I said before, works in the gallery.

    Thanks again!

    Chris

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard