web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / when do values get upd...
Power Apps
Unanswered

when do values get updated using lookup fields in function fields

(0) ShareShare
ReportReport
Posted on by 704

Say in table department I have a lookup field employee referencing table employees.

I also make a function string field in department with syntax (employee.name).

If in table employee the name is changed will it reflect in the function field of department or only if some change is made to the record in department that reference the emloyee?

I have the same question (0)
  • Shawn11 Profile Picture
    152 on at

    Hi @HansHeintz  if you use employee.name, value of the function field will be calculated once when the record is created or updated, and it won’t automatically update if the referenced employee’s name changes later.

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    @HansHeintz did you use Formula or Calculated field and you called it Function field?

  • HansHeintz Profile Picture
    704 on at

    Yes I incorrectly recalled a formula field a being called function field.

  • HansHeintz Profile Picture
    704 on at

    I see my exmaple is not very logical.
    It should be a formula field department in the employee table and what I need is department.name
    On a slightly differen note.. If I use department.name in my code, does this imply a lookup (time consuming wise) is being done. Or not and is the accuracy of the result also dependent on refreshing the record? 
    Since in the case of the formula field an update is only done when some change to the employee record is made (say that the department name has changed but still the lookup in employee still refers to the same department), what is the most logical way (code) to refresh the record? I don't expect refreshing the table to accomplish this since it would take to long with large tables.

  • ivan_apps Profile Picture
    2,187 Moderator on at

    Formula columns don’t persist in the database so the value is calculated on retrieval of the data. Say you are loading or refreshing the grid, the calculation to retrieve the lookup value is done at that time.

     

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/calculated-rollup-attributes#formula-and-calculated-columns

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard