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 Apps
Answered

Join 2 datasources

(0) ShareShare
ReportReport
Posted on by 17

Hi everyone, I'm building a PowerApps application in which I need to join 2 Excel tables(Table 1 and Table 2 down below) together based on 2 columns(Employee and Week of). The idea is that the app will firstly loop over those rows with the same employee value and week of value then string manipulate to produce a row like this. I'm thinking about using groupby function in Powerapps. Does anyone have any suggestion? Thanks you in advance.

 

Hi everyone, I was able to find a solution so thank you everyone. I posted the solution at the bottom. 🙂

Table3.PNG

 




Table1.PNG

 

 

Table 1

 

Table2.PNG

 

 

 

Table 2

Categories:
I have the same question (0)
  • Jagadeeshk Profile Picture
    457 on at

    Create local collection for joining and process like,

     

    1. Clearcollect(local_colleect, table1)

    2. Collct(local_colleect, table2)

     

    Now u use local_colleect as a joined table. 

     

    Additional note: excel will not support delegation,  ensure limited number of rows 

  • WarrenBelz Profile Picture
    156,460 Most Valuable Professional on at

    @MichaelNguyen ,

    For the collection to work, you also need to line up the columns, so you would do this

    ClearCollect(
     col1,
     ShowColumns(
     Table1,
     "Employee",
     "WeekOf"
     ),
    );
    Collect(
     YourCollectionName,
     col1,
     ShowColumns(
     Table2,
     "Employee",
     "WeekOf"
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    MichaelNguyen Profile Picture
    17 on at

    Thank you, I found another solution. 
    ClearCollect(
    achievementsCollection,
    GroupBy(
    Achievement_Table,
    "Week_x0020_of",
    "Employee",
    "AchievementGrouped"
    )
    );
    ClearCollect(
    plannedWorksCollection,
    GroupBy(
    PlannedWork_Table,
    "Week_x0020_of",
    "Employee",
    "PlannedWorkGrouped"
    )
    );

    To merge/link these 2 tables, I use AddColumns and LookUp

    ClearCollect(GoodNewsCollection,AddColumns(achievementsCollection,"PlannedWorkGrouped",LookUp(plannedWorksCollection, Employee=achievementsCollection[@Employee] And Week_x0020_of=achievementsCollection[@Week_x0020_of],PlannedWorkGrouped)))
    ;

  • WarrenBelz Profile Picture
    156,460 Most Valuable Professional on at

    @MichaelNguyen 

    Actually the same solution - I was simply trying to convey to you the concept of what you had to do.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard