cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bolin-stratus
Post Partisan
Post Partisan

Create a 3rd Collection (i.e., JOIN) From Two Collections

I am creating two collections from their respective SharePoint lists.  Both SP lists have a lot of columns but I only require 2 columns from each list.  This is working as expected. 

ClearCollect(colDashboardOne, ShowColumns('Deal-Intake-App', "Title", "Close_x002d_Date" ));
ClearCollect(colDashboardTwo, ShowColumns('Deal-Updates', "Deal_x002d_Ref_x002d_ID", "Pursuit_x002d_Closedown_x002d_Da" ));

However, when I create a third collection from the these two, I am missing a column.  What is the easiest method to create a 3rd collection that includes all four columns? The JOIN is where the Title = Deal_x002d_Ref_x002d_ID.  Any recommendations are greatly appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions

@bolin-stratus 

Oups ... I mistype my formula, there is no need of double-quotes: 

ClearCollect(thirdCollection, AddColumns(colDashboardOne,"Pursuit_x002d_Closedown_x002d_Da",LookUp(colDashboardTwo, Title = Deal_x002d_Ref_x002d_ID, Pursuit_x002d_Closedown_x002d_Da))

View solution in original post

4 REPLIES 4
gabibalaban
Super User II
Super User II

Hi @bolin-stratus ,

 

ClearCollect(thirdCollection, AddColumns(colDashboardOne,"Pursuit_x002d_Closedown_x002d_Da",LookUp(colDashboardTwo, Title = Deal_x002d_Ref_x002d_ID, "Pursuit_x002d_Closedown_x002d_Da"))

 

Actually I think that you'll have 3 columns, right ?

Hope it helps !

@gabibalaban - Thanks for the quick response.   The code you provided almost solves the issue but the Pursuit Closedown Date is blank for some reason.  From the image below you can see there is data in the Pursuit Closedown Date in the colDashboardTwo collection.  However, although the thirdCollection has a Pursuit Closedown Date column, there is no data.  
Power Apps - JOIN 2 Collections dashboard.PNG

@bolin-stratus 

Oups ... I mistype my formula, there is no need of double-quotes: 

ClearCollect(thirdCollection, AddColumns(colDashboardOne,"Pursuit_x002d_Closedown_x002d_Da",LookUp(colDashboardTwo, Title = Deal_x002d_Ref_x002d_ID, Pursuit_x002d_Closedown_x002d_Da))

View solution in original post

@gabibalaban - Marking this as the solution. Thank you!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,310)