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 / Merging multiple datap...
Power Apps
Answered

Merging multiple datapoints from a collection into one form input field.

(0) ShareShare
ReportReport
Posted on by 147

[This post has been edited by me so the question is clearer.]

 

I am trying to develop an application using a form. However, I want several inputs into one record.

 

For example, imagine I want to make a list of cats per person and I want the record to obtain data on their personal details and all their cats. It is important for me to have a record for each person and have multiple cats per record.

 

What I would like to do is as follows, users get to fill out two tables. The form and input for a collection:

NameGenderNationalityCatsColors
[fill in][choose][choose][retrieve string from collection 'Cat Name' column][retrieve string from collection 'Cat Color' column]

 

Cat NameCat ColorCat Age, etc.
[fill in][fill in][fill in]

 

The second table will allow you to add cats every click, which will immediately be displayed in a gallery for users to keep an overview. Now what I would like to know is how I can have the form input for 'Cats' retrieve the entire column of data from the 'Cat Name' collection. 

 

NameGenderNationalityCatsColors
BobMaleUSAFigo; Fluffy; Bob JrWhite; Red; Black
LindaFemaleCanadaBella; NoodleWhite; Grey

 

I want to use a collection to create a list of the cats and their colors and the form to retrieve that data, so it all gets collected into one record.

Does anyone know how to approach this? Or do you have a better suggestion?

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @Daniël , The form can only be mapped to one record. You can't map the form to a collection that has two two or more records unless you use a filter of first and last functions to get one record at a time. 

  • mmollet Profile Picture
    3,187 on at

    How does your user input data for cat names etc? combobox? text input?

    Also is there a reason to not just make a new entry for each cat as that is how a data source is meant to work. This stype of setup will get very hard to keep accurate. I would think about just making a new entry for each cat. You can still do the same things with them being separate entries and it will arguably make it better in the long run. This would also let you store more data on the cats if need be

     

    Here is an example:

    {Name: Bob, Gender: Male, Nationality: USA, Cats: [Figo, Fluffy, Bob Jr], Colors: [White, Red, Black], Age: [3, 5, 4]}

    or 

    {Name: Bob, Gender: Male, Nationality: USA, Cat: Figo, Color: White, Age: 3, etc} <-- much easier to extract data

  • Daniël Profile Picture
    147 on at

    Hello, thank you for replying,

     

    So it is important for me to have a record for each person and have multiple cats per record. (In actuality the cats are just an example and not the actual use-case.)

     

    What I would like to do is as follows, users get to fill out two tables. The form and input for a collection:

    NameGenderNationalityCatsColors
    [fill in][choose][choose][retrieve string from collection 'Cat Name' column][retrieve string from collection 'Cat Color' column]

     

    Cat NameCat ColorCat Age, etc.
    [fill in][fill in][fill in]

     

    The second table will allow you to add cats every click, which will immediately be displayed in a gallery for users to keep an overview. Now what I would like to know is how I can have the form input for 'Cats' retrieve the entire column of data from the 'Cat Name' collection. Preferably in the format as displayed in my first post.

     

    Help on how to code this would be very much appreciated.

  • Verified answer
    Daniël Profile Picture
    147 on at

    For others; I found the solution. It was surprisingly simple.

     

    Basically, I set the Default value of the input box to the following:

    Concat(
     [Collection Name],
     [Collumn Name] & "; "
    )

    So for example this would be:

    Concat(
     CatList,
     Cat_Name & "; "
    )

    Which defaults the input to listing the collection inputs under the Cat_Name category, e.g.:

    Cats
    Figo; Fluffy; Bob Jr

     

    Hope this helps others!

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard