Skip to main content
Community site session details

Community site session details

Session Id : zcBjx+zoMXAMe6NJ0+6nZs
Power Apps - Building Power Apps
Answered

Removing Blank values in a dropdown

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2024 11:22:51 by 13,477 Super User 2025 Season 2

Hey everybody

 

I have a sharepoint list with a few columns:

 

mmbr1606_0-1705058406173.png

I have a form that is connected to another list where i use this in my Items property:

 

Distinct(
 Filter(
 MyCollection,
 Value(currentEditRole) = 1 ||
 HeadofEntityEmail = User().Email
 ),
 LegalEntity
)

 

 

There are also some entries where the Legal Entity is empty/blank.

 

Can i somehow exclude the blank option from my dropdown choices?

In this screenshot you see, that the second option is the blank value i want to remove:

mmbr1606_1-1705058552206.png

 

Thanks in advance

Categories:
  • SpongYe Profile Picture
    5,580 Super User 2025 Season 2 on 12 Jan 2024 at 11:52:51
    Re: Removing Blank values in a dropdown

    Hi @mmbr1606 

     

    Then you can use this:

    Distinct(
     Filter(
     MyCollection,
     LegalEntity <> Blank()
     ),
     LegalEntity
    )
  • mmbr1606 Profile Picture
    13,477 Super User 2025 Season 2 on 12 Jan 2024 at 11:41:30
    Re: Removing Blank values in a dropdown

    thanks @SpongYe 

     

    that worked perfectly fine.

  • Verified answer
    SpongYe Profile Picture
    5,580 Super User 2025 Season 2 on 12 Jan 2024 at 11:30:03
    Re: Removing Blank values in a dropdown

    Hi @mmbr1606 

     

    Adjust your filter to only get records where LegalEntity is not Blank:

    Distinct(
     Filter(
     MyCollection,
     (Value(currentEditRole) = 1 || HeadofEntityEmail = User().Email) && LegalEntity <> Blank()
     ),
     LegalEntity
    )

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • StretchFredrik Profile Picture
    3,085 Super User 2025 Season 2 on 12 Jan 2024 at 11:25:54
    Re: Removing Blank values in a dropdown

    Try adding this to the filter query:

     

    !IsBlank(YOURVALUEHERE)

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete