cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Soumodip
Helper II
Helper II

Remove blank entries from dropdown list

Hello,

I have created a dropdown list, the items are getting fetched from columns of a SharePoint list.

This is the SP list I am using.

List.JPG

I have a dropdown which is fetching the values of the columns:

In "Items" property I have used the below formula:

If(Find("Meeting Room",Label21_9.Text)=1,Filter(IssuesMasterData,!IsBlank(MeetingRoom)),Filter(IssuesMasterData,!IsBlank(Cafeteria)))

 

But the blank spaces are still not getting filtered out.

view.jpg

Please help.

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

@Soumodip 

Please put the formula back in that I provided and then make sure you have the "Value" property of your dropdown control (found in the properties pane on the right of the design screen) set to "Room".

 

See if that resolves what you need.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
RandyHayes
Super User
Super User

@Soumodip 

Please consider the following change to your Items property formula:

Filter(
    AddColumns(
        IssuesMasterData,
        "Room", If("Meeting Room" in Label21_9.Text, MeetingRoom, Cafeteria)
    ),
    !IsBlank(Room)
)

You can't switch the column type around on a dropdown like you are trying, so the IsBlank filter formula you had would not be effective.

With the above formula, set your Dropdown to display the Room field and you should have the results that you want.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks @RandyHayes . But the solution does not work as expected now, I am getting the same values in the dropdown list irrespective of the value in: 

Label21_9.Text

This is the result:

dd.pngdd2.png 

 

The expectation is that the values in the dropdown should change based on the value of the label.

But if I use "Distinct", I'm getting the blank values.

dd3.pngdd4.png

@Soumodip 

Please put the formula back in that I provided and then make sure you have the "Value" property of your dropdown control (found in the properties pane on the right of the design screen) set to "Room".

 

See if that resolves what you need.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Thanks @RandyHayes worked perfectly!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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