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 / Combining 3 collection...
Power Apps
Unanswered

Combining 3 collections into one collection

(0) ShareShare
ReportReport
Posted on by 1,097

I have 3 collections that is created like this:
ClearCollect(col_Name;Split(TextInput5.Text;Char(10)))
ClearCollect(col_ID;Split(TextInput5_1.Text;Char(10)))
ClearCollect(col_UserName;Split(TextInput5_2.Text;Char(10)))

How can i combine these 3 collections into a new collections with 3 columns (Name, ID, UserName)?

 

I cant see how i can lookup a value from one column and map that...

 

 

 

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,393 Super User 2025 Season 2 on at

    @Oskarkuus 

    I'm not sure how your input data looks like but I suspect you're looking for something like this:

    ForAll(
     Sequence(CountRows(col_Name)),
     {
     RegionCode:Index(col_Name, Value).Result,
     RegionCode:Index(col_ID, Value).Result,
     RegionDesc:Index(col_UserName, Value).Result 
     }
    )
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @Oskarkuus ,

     

    I tried something on my side. I have three collections clt1, clt2 and clt3.

     

     

    ClearCollect(clt1;["a";"b";"c"]);;
    ClearCollect(clt2;["d";"e";"f"]);;
    ClearCollect(clt3;["g";"h";"i"]);;

     

     

    I can combine them this way:

     

     

    ClearCollect(
     clt4;
     ForAll(
     Sequence(
     Max(
     CountRows(clt1);
     CountRows(clt2);
     CountRows(clt3)
     )
     );
     {
     Name: Index(
     clt1;
     Value
     ).Value;
     ID: Index(
     clt2;
     Value
     ).Value;
     UserName: Index(
     clt3;
     Value
     ).Value
     }
     )
    )

     

     

    Supposing your items are in order in each collection, "Index()" allows you to retrieve each item sharing the same row's ID.

     

    WiZey_1-1667573418904.png

     

    Hope this was helpful to you. 

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