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 / How to use "All" in dr...
Power Apps
Answered

How to use "All" in dropdown in power apps?

(0) ShareShare
ReportReport
Posted on by 127

I have a list that contains list of properties. the property categorized  with column category:

column category has either House or Apartment value.

I use vertical gallery to display the  list.

the value of Items for the gallery is:

SortByColumns(Filter(propertylist,category.Value=Dropdown1.SelectedText.Value), "posteddate", SortOrder.Descending)

 

the drop-down items value: ["House","Apartment"]

Sebey_0-1686604501324.png

 

This gallery displays the list of house or Apartments  at  a time, now i want to add All into thee drop down, so that by default the list will be  all lists of houses and Apartments.  expected drop down options "All","House","Apartments". when I choice All, get list of both  houses and apartments.

how can i do that?

the column category in SharePoint list is a type choice with House,Apartment.

your help is appreciated.

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Sebey ,

    You need to perform two actions.

    1) Add "All" as an option in your dropdown. You can achieve this either by adding an additional choice in your SharePoint list and use Sort function in the Dropdown's Item property so that "All" appear on top. Alternately, if you don't prefer adding a new choice value in SharePoint, you can append the "All" to the existing dropdown datasource by setting the Items property like this

    Ungroup(
    Table(
    {myMenuOptions: Table({Title: "All"})},
    {myMenuOptions: Choices([@'List Name'].ColumnName)}
    ),
    "myMenuOptions"
    )

    2) Next you need to add a conditional filtering on your Gallery's item property

    If(Dropdown1.Selected.Value = "All",'ListName',Filter('ListName',ColumnName=Dropdown1.Selected.Value))

     

    Hope that helps!

     

  • Verified answer
    HectorOlivos Profile Picture
    411 on at

    Hello!

     

    You can use a ClearCollect on start 

     

     

    ClearCollect(
     CategoryOptions,
     { Value: "All" },
     { Value: "House" },
     { Value: "Apartment" }
    )

     

     

    In the Dropdown1 items property: 

    CategoryOptions

     

    Then in the gallery you can try with this: 

     

     

    If(Dropdown1.Selected.Value = "All",
     SortByColumns(propertylist, "posteddate", SortOrder.Descending),
     SortByColumns(Filter(propertylist, category.Value = Dropdown1.Selected.Value), "posteddate", SortOrder.Descending)
    )

     

     

  • Sebey Profile Picture
    127 on at

    Wow 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 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard