web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Apps - Microsoft Dataverse
Answered

Model driven Lookup on calculated column

Like (0) ShareShare
ReportReport
Posted on 26 Jan 2021 17:26:32 by 29

I am attempting to Lookup on a Parent calculated column.  It works in a very odd way.  In one instance it brings in the locally defined field (of the calculated column) in the parent table but not on the looked-up field in the parent.  In another case the parent table shows as a popup table but when a record is selected no data is copied into the child field.  In another case  where the parent calculated field is composed of two lookup fields no popup table shows at all.

 

Is it possible to lookup to a parent calculated field?

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on 28 Jan 2021 at 01:33:19
    Re: Model driven Lookup on calculated column

    Thanks for the video, that really helped. So you're issue is actually not with the calculated fields/columns, but with the tables/entities data. I've summarize them with a solution below:

    1. Every table has a primary field/column. The purpose of the primary field is promote a field that will be displayed in the header of its table's forms, and most importantly in lookups of referencing tables. We need a primary field because otherwise what would be shown in lookups, the ID (GUID)? But that wouldn't be very user-friendly. This is the MS docs definition:
      "By default, every table contains a Primary Field, which is used by lookup columns when establishing relationships with other tables. Typically the primary column stores the name or primary description of the data stored in the table. You may update the name and display name of the primary column before saving the table for the first time. Also, observe that the primary column also has its own Name box, which functions similarly to the table name described above. The primary column name is autopopulated when a display name is entered, uses the same prefix as the table, and cannot be changed after the table is created."

      You don't have data in those primary field and it's the reason why you see "(no name)" and why it seems that the calculated fields do not work. It does calculate in the background but the field is an empty string so there's nothing to concat.
      A common solution is to auto-populate that primary field with the desired value from another field. Suggest to use classic workflows to have it sync but if you need async leverage Power Automate.

    2. The reason you see values in the lookup dropdown is because the lookup on the form is bound to a view with columns that has data and does not contain the empty primary field.
      A solution for the other lookups is to update that view (typically the lookup type of view) or create a new view and associate it to the lookup field.
      More info: https://docs.microsoft.com/powerapps/maker/model-driven-apps/form-designer-add-configure-lookup 
      2021-01-28_14-21-29.png

    Hope this all makes sense!

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete