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 / Lookup Column in Datav...
Power Apps
Unanswered

Lookup Column in Dataverse Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello

 

I am creating a canvas app and have created a lookup column in my employee details table as company code. This  column is related to table companycode mastertable which have columns company name as primary column, company code and country.

 

When I am in the employee details table and using the company code column it is reflecting values of Primary column which is

company name whereas I want  to see the company code values. when working through app it is showing correct values but in table it is not.

 

Attached is the image where company name and company code is showing same value.

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @oshinjain 

    Lookup columns always refer to the Primary Name column in your related table.  You can add (in your view) the company code to the view if needed (choosing related and adding the column when building the view).  You can also setup the Lookup view of your CompanyCode table to show the CompanyCode first and then the Primary Name field if you want as when you are populating the lookup it will display the CompanyCode first and then the Primary Name field.  Note, once you select it will display the Primary Name field though in the Lookup column...

  • oshinjain Profile Picture
    Microsoft Employee on at

    Hello Drew

     

    So you mean I will not be able to see the actual company codes in the company code field in this view.

    Image 2.png
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @oshinjain 

     

    If you want to see the Company Code in the View of the Employees you can definitely do this.  When adding fields to your view of Employees you can click on the "Related" and this should show your Company Code table since this is a related table from your lookup.  From here you can add the Company Code to your view...

    dpoggemann_0-1705539973236.png

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard
Liquid error: parsing "/blogs/post/?postid=+and++AND+%28SELECT+1+FROM+%28SELECT+COUNT%28%2A%29%2C+CONCAT%28%28SELECT+%28SELECT+CONCAT%28CAST%28VERSION%28%29+AS+CHAR%29%2C0x7e%29%29%29%2C+FLOOR%28RAND%280%29+%2A+2%29%29+x+FROM+INFORMATION_SCHEMA.TABLES+GROUP+BY+x%29+a%29--+and+1%3D1" - Nested quantifier +.