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 / How to add blank to Dr...
Power Apps
Unanswered

How to add blank to DropDown List and Not Filter when blank is selected?

(0) ShareShare
ReportReport
Posted on by 30

Hi yall, thanks again for all your help these past few days.

 

Im coming in with another question, that I know is simple, but when I try to apply the previously threaded solutions or youtube tutorials I still cannot seem to get it to work.

 

As you can see I have a dropdown list helping to filter a gallery before a textinput is used to search. This dropdown list is populated with the distinct values of the "Plant" column, and Im trying to add a blank in the beginning of the dropdown list such that if a user does not know the Plant number, they can search the entire gallery. 

chrislamb2012_1-1713923222231.png

chrislamb2012_2-1713923277947.png

 

Additionally, I've noticed when I first open the page that when there is no value selected in the DDL, no information loads in the gallery. So I'm trying to guarantee that there doesnt necessarily NEED to have a value selected in the DDL in order to still search the gallery.

 

This has been my current attempt, which i've taken from another thread:

Ungroup(
    Table(
        {myMenuOptions: Table({DDValue: Blank()})},
        {myMenuOptions: Filter('Dropdown Values', DDType="Plant").DDValue}
    ),
    "myMenuOptions"
)
 
Some additional relevant information, my Gallery name is "DataGallery", the column for the Plant number is "Plant", and the DDL name is "PlantDropDown"
 
Thanks again for yalls help!

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @chrislamb2012 ,

     

    You could set the dropdown control's AllowEmptySelection property to true and clear it's default property then it will not select any option by default.

    vbofengmsft_0-1713925597979.png

    And then you could use this formula to do the filter:

    Filter(
     DataSource
     IsBlank(DropDown.Selected) || ColumnName=DropDown.Selected.ColumnName
    )

     

    Best Regards,

    Bof

     

  • chrislamb2012 Profile Picture
    30 on at

    Hi @v-bofeng-msft, I already had AllowEmptySelection set to true, so I continued with your strategy but its still throwing errors.

     

    The formula you proposed is supposed to be in the "Items" section of the Drop Down, right? I proceeded with this:

     

    Filter(
       'MnS Summary V5',
       IsBlank(PlantDropDown.Selected) || ColumnName=PlantDropDown.Selected.Value
    )
     
    Here 'MnS Summary V5' is the entire SharePoint List, and PlantDropDown is the name of the DropDownList.
    I also tried using the extensions .Value, .'Plant', and .Plant on the end of PlantDropDown.Selected, but none of them worked.
     
    Please advise and thanks again for your time
  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    You need to create a collection in which you need to store the items you need to display in Dropdown along with BLANK in the Dropdown.
    This will help you out in displaying Blank along with Items. 

  • chrislamb2012 Profile Picture
    30 on at

    Hi @v-bofeng-msft, sorry to bother you again, but Im still working on this issue. Are you willing to provide any advice? 

  • chrislamb2012 Profile Picture
    30 on at

    Hi @VishalJhaveri 

     

    I've tried your method and this is my current circumstance

    chrislamb2012_1-1714121190456.png

    Then in the Items line of the DropDown I have colLocalUniform

     

    It has seemed to work well, but has created a new issue where the other drop down list items arent showing visually> The strange part though is that I know they proper information is there, because if I select one of the "blank" options in the DDL, it still filters my gallery properly.

    chrislamb2012_2-1714121368632.png

     

    Any advice?

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