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 Platform Community / Forums / Power Apps / joining tables using c...
Power Apps
Unanswered

joining tables using collection and addcolumn

(0) ShareShare
ReportReport
Posted on by 81

Hi, i am trying to join two tables from sql, and i want to be able to display records in the detail screen. How do i go about creating the collection and adding column. i have a screenshot below: where do i create the collections(on select , in my submit button where the search takes place? or on visible? i will like my column to display on the detail screen. 

Screen Shot 2021-05-21 at 7.27.32 AM.png
Screen Shot 2021-05-21 at 7.27.50 AM.png
Screen Shot 2021-05-21 at 7.30.51 AM.png
Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Tbabe 

    What is it that you are trying to create a collection for?  Can you provide more details on what it is used for?

    Unless there is a particular need for another duplicate in memory database of your data, you can just put the formula you need in the place you are trying to provide data.

  • Tbabe Profile Picture
    81 on at

    ok,  what i am trying to do is to add another table to my datasource, how do i go about it? ClearCollect(Collection1,AddColumns(WorkOrders,"Jobs",LookUp(Jobs,"job_address1_Column1" = WorkOrders[@job_address1])))

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Tbabe 

    I'm going to need more information!  There are a hundred ways to go about it.  Are you trying to add columns to your existing table that have a table of other records, or a lookup of certain records related to one record, or are you trying to combine two tables of non-related records into one?

     

    From the formula you provided, it appears that you want to perhaps create a column with related workorders.

    I am not sure of the collection need, so the formula to have a column of related records from another datasource would be:

      AddColumns(WorkOrders As _item, "Jobs", LookUp(Jobs, job_address1_Column1 = _item.job_address1)

     

    This is going to give you a table of the records in WorkOrders with a new column called Jobs that will have a table of the records from Jobs that relate to the address.

  • Tbabe Profile Picture
    81 on at

    yes, i am trying to add columns to an existing table(WorkOrder) from Jobs table, the tables are related by the (Job_address). 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard