cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
colbyturybury
Helper V
Helper V

Selecting which choices from a sharepoint choice column to be displayed in a combo box

Lets say I have a choice column in sharepoint with the 5 choices of, apple, banana, orange, grapes, and mango. When selecting the items field of the combo box in power apps you get Choices(database.listcolumn). How would I write this if I only wanted to see apple, orange and grape?

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @colbyturybury ,

It would be 

Filter(
   Choices(database.listcolumn),
   Value = "apple" ||
   Value = "orange" ||
   Value = "grape"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Perfect! Thank you!

 

Is it possible to instead of type the those three fruit types that you use an ID of sorts such as IDs 0,2,3? Just trying to think of a way to minimize errors.

Hi @colbyturybury ,

As you are filtering the Choices, it needs to specify which ones you do not want. Either that or you go back to Filtering an actual list (and having to use Distinct() with is not Delegable)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,578)