cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver II
Resolver II

Filter out empty values from Drop Down field

In my form, I m doing a lookup to a secondary SharePoint list to retrieve the "Type of Purchase/Spend". My items value is currently VendorDataList.'Vendor Type', where VendordataList is my data source and Vendor Type is the field I want to return.

Unfortunately, the list they are using is used for other lookup values and not all entries have a "Vendor Type".

Currently, I am getting all the values, including those that don't have a Vendor. So, when you start scrolling down, all the "Empty" Vendor types" are returned as well:

emptyvalue.png

I tried to write a filter method, but can't seem to figure out the actual filter statement to enter to filter out the "empty" ones?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Filter out empty values from Drop Down field

Can you try Distinct(VendorDataList.'Vendor Type')?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

4 REPLIES 4
Highlighted
Super User
Super User

Re: Filter out empty values from Drop Down field

Can you try Distinct(VendorDataList.'Vendor Type')?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

Highlighted
Super User
Super User

Re: Filter out empty values from Drop Down field

@shanemeisner 

Have you already tried using ISBLANK like this?  I believe this would avoid delegation warnings.

 

Filter(your_datasource_name,IsBlank(your_column) = false)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Resolver II
Resolver II

Re: Filter out empty values from Drop Down field

Thanks @PowerAddict  .. Your idea led me down a path that removed the "empty" ones and sorted the values::

Sort(Distinct(VendorDataList,'Vendor Type'),Result)

Highlighted
Super User
Super User

Re: Filter out empty values from Drop Down field

Great, if my reply helped, please accept it as a solution.

Thanks,
Hardit

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,933)