cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
caruso1058
Microsoft
Microsoft

Filter Out Blanks using Choices

Hello, 

 

I have a Combo Box dropdown in a Form that populates my data from a SharePoint LookupColumn:
Choices([@'L11 - PFAM List Duplicate'].Building_x0020_Blocks)

 

However, the code above also returns a lot of blank values because there are a lot of blank values in the SP List.
I have attempted to use the Filter function to remove the Blank Vales but I can't seem to get this to work:
Filter(Choices([@'L11 - PFAM List Duplicate'].Building_x0020_Blocks), [@'L11 - PFAM List Duplicate'].Building_x0020_Blocks <> Blank()) 

Any help would be appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Super User
Super User

Hi @caruso1058 ,

 

Can you try:

 

Filter(Choices([@'L11 - PFAM List Duplicate'].Building_x0020_Blocks),Len(Value)>0)  ?

View solution in original post

2 REPLIES 2
gabibalaban
Super User
Super User

Hi @caruso1058 ,

 

Can you try:

 

Filter(Choices([@'L11 - PFAM List Duplicate'].Building_x0020_Blocks),Len(Value)>0)  ?

That works great!!
Thank you for your help with this!

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,235)