web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox Choices Changed
Power Apps
Unanswered

Combobox Choices Changed

(0) ShareShare
ReportReport
Posted on by 55

Hi, 


I have a combobox that is populated with numbers that correspond to a location name. Is there anyway of using Switch of If to change the number to a location name but still have it filter the gallery by the number?


Thanks

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,819 Super User 2026 Season 1 on at

    Hi @jneuen ,

     

    Assuming that in your data source you have both a LocationNumber and LocationName column (or whatever the name of the column are that have the location numbers and names in it), changing the DisplayFields (and SearchFileds) property of the combo box to ["LocationName"] should not impact any filter statements which reference combo box selection.

  • jneuen Profile Picture
    55 on at

    The source data doesn't contain the location name, tried a calculated column but that ran into delegation issues

  • BCBuizer Profile Picture
    22,819 Super User 2026 Season 1 on at

    Hi @jneuen ,

     

    In that case I suggest to use the AddColumns function in the Items property of the combo box:

     

    AddColumns(
    	NumberDataSource, 
    	"LocationName", 
    	LookUp(
    		NameDataSource, 
    		NumberColumn = NumberDataSource.NumberColumn,
    		Name
    	)
    )

     

    This adds a virtual column to your data with the location name in it which you can use to display in the combo box.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard