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 / Modern Table - How to ...
Power Apps
Unanswered

Modern Table - How to display foreign (related) fields

(1) ShareShare
ReportReport
Posted on by 21
I have two Dataverse tables that are related but am unable to figure out how to display fields from a related table in the Modern Table control.
 
Example:
Table User:
 - Full Name
 - Department (as GUID)
 
Table Department:
  - Department (as GUID)
  - Name
  - Department City
 
I need to be able to display the User Full Name and Department City as columns in the same Modern Table. For Items I specify the User table.  Looking at the Fields list in the Table, the Department is shown as a linked (lookup) field and if I select it, the table shows the default column (name). How do I add the Department City as a column in the table? I have been trying different things like AddColumns to the Item which resulted in weird behavior and never what I wanted.  Not sure if there are problems accessing the related fields in the table control due to this being in preview, or I am taking the wrong approach.
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at
     
    It would be Dot Notation
     
    So ThisItem.LookUp.Record.Property
    or depending on what it is it could just be
     
    ThisItem.LookUp.Property (from the related table)
     
    Meaning you dont "find" it as a selectable column, you have to use Dot Notation to drill down to it.
  • SB-24090026-0 Profile Picture
    21 on at
     
    The dot notation does not work in a modern table control.  When inserting a modern table, there is a button to see all the columns and it only lists columns from the primary table, including the name of the related table.  If you select a column to add to the table, it creates a new table column object and sets its FieldName attribute to the name of the field as a string.  I tried modifying the FieldName string with dot notation but that produces an error when fetching the records. 
     
    When displaying all the fields in the table, it does show my related table name but only allows me to select the related table, which then returns the primary display (name) column from the related table and does not allow me to specify other columns.
     
    Using the monitor, I can see that the Dataverse fetch is retrieving all the related fields in the query but there is no way to access them.  If I put the dot notation in Field Name (e.g., "Departments.city"), it will generate an error as the $select being sent to Dataverse is asking for Departments.city which obviously is not a column name on the base table.
     
    I did just get AddColumns to work.  Just have to make sure to convert fields to Text (e.g., Text(Departments.city), or in the Field object inside the table, set FieldType attribute to "d" (no documentation on FieldType but figured this out).

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard