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 / data table - displayin...
Power Apps
Answered

data table - displaying records from 2 tables

(0) ShareShare
ReportReport
Posted on by 148

i have two data sources  - sample of some fields from each source:

Common link between the two tables is the ApptID.

 

Source 1 -Table 1 - ApptID , Date, Time, Name, Address, Phone  

Source 2- Table 2 - ApptID, Comments, Actions

Not all records in table 1 would have a related record in table 2

 

I am trying to display related records from both tables as single rows in a data table, so something like this:

ApptID , Date, Time, Name, Address, Phone, Comments, Actions

 

and if no  related records in table 2 then Comments and Actions in the data table would be blank.

 

I understand i need to change the items in my data table? but just how?  thanks

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @cheezy 

     

    We have to get using Addcolumns from other sources and bind to Datatable. For example

     

     

     AddColumns(
     IssueTracker,
     "EventName",
     LookUp(
     EventIItinerary,
     Event.Id = ThisRecord.ID
     )
     )

     

     

    In the above example, It gets all data from IssueTracker and Event name from EventItinerary source

     

     

  • Verified answer
    WarrenBelz Profile Picture
    155,240 Most Valuable Professional on at

    Hi @cheezy ,

    The Items of your Data Table would be something like this

    AddColumns(
     RenameColumns(
     Table1,
     "ApptID",
     "AID"
     ),
     "Comments",
     LookUp(
     Table2,
     ApptID = AID
     ).Comments,
     "Actions",
     LookUp(
     Table2,
     ApptID = AID
     ).Actions
    )
    	

     

    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

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
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard