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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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 worked perfectly!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,230)