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 / 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,189 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

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