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 / Populate combobox with...
Power Apps
Unanswered

Populate combobox with the text from multiple labels

(0) ShareShare
ReportReport
Posted on by 11

Hello,

 

I have the following situation:

- multiple labels named label4_1, label4_2.....label4_20

- one combobox

 

I want to populate this combobox with the text from all those labels. How can I do this?

 

Thank you, 

Catalina

Categories:
  • Anchov Profile Picture
    1,986 on at

    UPDATED FORMULA:

     

    You can achieve this by using the "Items" property of the ComboBox and the "Concatenate" and Split function to concatenate the text from all the labels.

    Here's an example formula that you can use for the "Items" property of the ComboBox:

     

    Split(Concatenate(Label4_1.Text, ",", Label4_2.Text, ",", Label4_3.Text, ",", Label4_4.Text, ",", Label4_5.Text, ",", Label4_6.Text, ",", Label4_7.Text, ",", Label4_8.Text, ",", Label4_9.Text, ",", Label4_10.Text, ",", Label4_11.Text, ",", Label4_12.Text, ",", Label4_13.Text, ",", Label4_14.Text, ",", Label4_15.Text, ",", Label4_16.Text, ",", Label4_17.Text, ",", Label4_18.Text, ",", Label4_19.Text, ",", Label4_20.Text), ",")

     

    This formula concatenates the text from all the labels using commas as separators, then splits resulting string by the comma as the items for the ComboBox.

    Note that if you add or remove labels, you'll need to adjust the formula accordingly.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

  • RusselThomas Profile Picture
    4,014 on at

    Hi @catalinaA ,

    I haven't tested, but in theory this would work in the Combo Items: property;

     

    Table(
     {Result: Label1.Text},
     {Result: Label2.Text},
     {Result: Label3.Text},
     {Result: Label4.Text}
    )

     

    The display field on the combo would then be "Result"...

    Hope this helps,

    RT

     

    [update: tested quickly and it works fine on my side]

  • catalinaA Profile Picture
    11 on at

    I search for a method to include something like this : label4_n, where n between 1 and 20.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @catalinaA

    Your request is unusual. Typically, a list or table is used or the items are hard coded with known values. 

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Heya @Anchov

     

    Concat applies an expression over a table to create a single string, so it wouldn't work for Items as that requires a table of values 🙂

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard