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 / Concatenating Column V...
Power Apps
Answered

Concatenating Column Values to String

(0) ShareShare
ReportReport
Posted on by 93

I am looking for a way to concatenation/join the values of a column from a table to generate a single string of text

 

Say I had a collection with 3 values in column Result:

 

Result

  • dog
  • cat
  • bird

 

I would like to concatenate those values and using semi-colon as a delimiter to create a text value of dog;cat;bird;

 

I tried using Concat and ForAll but can't seem to find a way to make it work.

Categories:
I have the same question (0)
  • Verified answer
    itsmeqp Profile Picture
    93 on at

    And shortly after I found a solution.

     

    https://powerusers.microsoft.com/t5/Connecting-to-Data/convert-table-column-to-string/td-p/87539

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I can't access this link! How did you do it!!??

  • itsmeqp Profile Picture
    93 on at
  • Antonima Profile Picture
    Microsoft Employee on at

    Concat([your table], [your column] & ";")

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How do I do this if I don't have any columns?
    I have a string "1,2,3,4,5"

    I used split to get it into a collection to display in a lisbox. 
    Set(itemNumbers, TrimEnds( Split( gallery.Selected.ItemNumbers, ",") ))
    I later want to get all the selected items back into a new flat string. Ex: "1,2,5"

    How can I do this?

  • K-A-R-L Profile Picture
    715 on at

    You can try to save your selected Items as a Collection and assisgn a Column Name.

    To check, you can add a Label and a Button

    then Use this on OnSelect Property of the button (e.g Save Button):

    Set(CollectedItems, Concat([your table], [your column] & ","))

    On the Label set the Text Property to:


    CollectedItems

  • DanielaHo Profile Picture
    241 on at

    Hi, 

    I am trying to do something similar, only my collection includes one or more objects, as the underlying data source is a choice column. For this reason, the proposed code is not working for me:

    Set(VarTest, Concat(Collection, ProductName)

    The error sais "Invalid argument type (Table). Expecting Text value instead"

    Capture.PNG

    How can I generate a string from the content/objects in this collection? 

  • DanielaHo Profile Picture
    241 on at

    Anyone? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Have you tried to use ProductName.Value?

    Set(VarTest, Concat(Collection, ProductName.Value))

     

  • VickyPower23 Profile Picture
    2 on at

    Try this,

     

        Concat(FirstN(CollectionTableWhichHasValues, 100),ThisRecord.Value&",")
     
     
     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard