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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo box: Items prope...
Power Apps
Answered

Combo box: Items property = Table with two columns. How to display the values from Column 2 but store the values from Column1?

(0) ShareShare
ReportReport
Posted on by 229

Hi, I'm having some issues to do the following. Any help is much appreciate.

 

I have a table with two columns. I want to display in a ComboBox the column "Description", and when the item is selected, display the value of the column ID in a Label Text. I have the following Elements:

 - Table1: Where the data is

 - ComboBox1: ComboBox displaying column Description

 - Label1: Label displaying the ID  of the selected Description in Table1

 

For example, giving the Table 1 below, my ComboBox1 should display ITEM_1, ITEM_2, ITEM_3, ITEM_4, ITEM_5,

If I select the ITEM_1, Label1 should display "1"

 

Table1

ID    Description

1      ITEM_1

2      ITEM_2

3      ITEM_3

4     ITEM_4

5      ITEM_5

 

I've tried to add to Combobox the following

  • Items: Table1.Description. It display the items in the combobox but I can not get the ID in Label. (I am using in Label - TEXT: Combobox1.Selected.Text)
  • Items: Table1. It display the items in the combobox but 1) I can't search in the combobox and 2) I can not get the ID in Label. 

Any suggestion?

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Try using Combobox1.Selected.ID as the Text property of the label. The Items property of the dropdown should just be Table1

    If you have multiple selections, you can use this formula

    Concat(ComboBox1.SelectedItems.ID,Text(ID),", ")

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

  • eka24 Profile Picture
    20,923 on at

    if all the structure is the same then try in the Leabel:

    Substitute(ComboBox2.Selected.Value,"Term_"," ")
  • Sam4 Profile Picture
    229 on at

    Thanks both for your replies, 

     

    @Anonymous  your solution works, I think I had some type of connectivity problems as I would say I tried that, anyway, thanks :). I don't have multiple selections so that is fine.

     

    If I have in Items for the combobox Table1, how I can make sure it is displaying the column Description?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard