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 / Converting column of t...
Power Apps
Answered

Converting column of text values to single multi-select choice

(0) ShareShare
ReportReport
Posted on by 82

My challenge is a peculiar one: I have a collection with a column of string values.  I would like to convert each of the string values to choices, and combine all the choices into one multi-select choice.

 

Visual Example:

 

ColOneColTwo
X"ChoiceA"
Y"ChoiceB"
Z"ChoiceA"

 

I would like to combine them and convert them into a single choice of ["ChoiceA", "ChoiceB"] that would go into another field.  This is part of a larger command to do a multiple-select lookup on one field, and then auto-populate a choice field with the respect to the table above.  In other words, if I select "X","Y" and "Z" for the lookup field, the choice field should have ["ChoiceA","ChoiceB"] as the selection.

 

I'm still new to PowerApps, and I apologize if I haven't explained this completely clearly and correctly.

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @HelloThereAll :

    First of all,If you just want users to freely choose "ChoiceA" or "ChoiceB" according to the collection you provide.Just try:

    Add a combo box and set it's items property to:

     

    Distinct(yourcollecton,ColTwo)

     

    C1.gif

    Secondly,If my understanding is incorrect.Could you provide a more specific description.

    Best Regards,

    Bof

     

  • HelloThereAll Profile Picture
    82 on at

    Not the available options, the selected ones.  What would be entered into the list entry would be ["Choice1","Choice2"].

     

    ListCol1ListCol2
    [X,Y,Z]["Choice1","Choice2"]
  • HelloThereAll Profile Picture
    82 on at

    I changed the title of this thread to hopefully be more clear.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @HelloThereAll :

    Do you want to get a table like this?

    1.JPG

    Please try this code:

    Table(
     {
     ListCol1: "[" & Concat(
     Distinct(
     yourcollecton,
     ColOne
     ),
     Result,
     ","
     ) & "]",
     ListCol2: "[" & Concat(
     Distinct(
     yourcollecton,
     ColTwo
     ),
     Result,
     ","
     ) & "]"
     }
    )

    Best Regards,

    Bof

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 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard