cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TB05
Resolver I
Resolver I

Combine Collections

Hi,  I have two collections. First collection is called selectedDateCollection has a date field only, called colDate and let's says it has 5 dates in the collection.

I have a second user collection that is composed when a user is selected from  a gallery - this collection is called selectedUserCollection that contains all the employee fields. Let's say there are 5 users selected in the gallery and  put into the selectedUserCollection.

So, what I would like to do, is to have new collection that has a record for the date and employee...end result would be 25 records.

ie. 

Feb 1, Sally,13, Norris, CA

Feb 2, Sally, 13, Norris, CA

Feb 3, Sally, 13, Norris, CA

Feb 4, Sally, 13, Norris, CA

Feb 5, Sally, 13, Norris, CA

Feb 1, John, 12, Lewis, CA

Feb 2, John, 12, Lewis, CA

Feb 3, John, 12, Lewis, CA

Feb 4, John, 12, Lewis, CA

Feb 5, John, 12, Lewis, CA

etc...

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

@TB05 ,

Use something like:

 

ClearCollect(
     newCollection,
     Ungroup(
         ForAll(
            DateCollection,{Date:colDate,Record:UserCollection}),
        "Record")
)

 

Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

@TB05 ,

Use something like:

 

ClearCollect(
     newCollection,
     Ungroup(
         ForAll(
            DateCollection,{Date:colDate,Record:UserCollection}),
        "Record")
)

 

Hope it helps !

TB05
Resolver I
Resolver I

Thank you @gabibalaban , that worked great!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,830)