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 / Display certain item i...
Power Apps
Unanswered

Display certain item in dropdown as default

(0) ShareShare
ReportReport
Posted on by 26

i would like to set my dropdowns default value to display one of the already created items, or make a new, empty one.

 

code for "Items" dropdown: 

SortByColumns(Distinct(Office365Users.SearchUser({searchTerm:IskalnikZaposlenihTxt.Text,top:950}), Department), "Result")

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

     

    @J_1

    Set the AllowEmptySelection property of the dropdown to true and use the following as the Items property for the dropdown

     

    With({lst:Sort(
     Distinct(
     Office365Users.SearchUser(
     {searchTerm:IskalnikZaposlenihTxt.Text,top:950}
     ),Department
     ),Result
     )
     },
     Ungroup(
     Table(
     {myItems: Table({Result: Blank()})},
     {myItems: lst}
     ),"myItems"
    )

    you can set the Default property of the dropdown to Blank() or leave it as "1". 

     

     

  • J_1 Profile Picture
    26 on at

    Thank you very much @Drrickryp , it works. But do you think its possible to hide the first "default" dropdown option? right now it shows like intended, but would it be possible to still keep the empty one in first place, but just make it not visiable in the app?

     

  • J_1 Profile Picture
    26 on at

    On the same note, would it be possible to create a department - the default one, with everyone in it? sort of like a department containing every department. 

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 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard