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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Blank value in Dropdown
Power Apps
Answered

Blank value in Dropdown

(0) ShareShare
ReportReport
Posted on by 43

Hello Team,

 

I have SharePoint online list column as the data source for my dropdown control. In the SPO List, I have added the blank row (Last row) so that I can see distinct values in the dropdown (Please let me know if there is a better way to do it). The issues, i see blank value in the drop down but It's last, I would like to have it first in my dropdown list. I tried sort but didn't help. 

 

FYI I don't want to use collection.

 

Thanks.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @vshah804 

    Do you really want it to be blank or a "Choose" option?

    Is this actually a Dropdown or is it a ComboBox?  If it is a Dropdown, you can also utilize the "AllowEmptySelection" property of the control.

     

    In general, putting a blank value in your list is not needed and can cause your app to break if someone in the future sees it and things it is there by mistake and deletes it.  It is best to handle the logic you want in the app directly and not have the data try to drive a behavior.

     

     

  • vshah804 Profile Picture
    43 on at

    @RandyHayes  - I like to have Blank value to choose. Please help. Thanks.

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @vshah804 

    Sure thing.

    First I would ditch the blank value in your SharePoint list, you don't need it.

     

    Next, on the Items property of your Dropdown, set the formula to the following:

    With({listItems: yourSharePointList},
     ForAll(
     Sequence(CountRows(listItems)+1),
     {Value: If(Value-1 = 0, Blank(), Last(FirstN(listItems, Value-1)).yourColumnName)}
     )
    )
    

    In the above formula you will need to substitute:

    1) The name of your SharePoint list where indicated.  Or, if you are using a Filter, that filter statement. 

    2) The name of your column in the list that you want displayed in your Dropdown where indicated.

     

    This will give you a collection-less dynamic dropdown with the first item being a blank option.

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard