Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

when do values get updated using lookup fields in function fields

(0) ShareShare
ReportReport
Posted on by 674

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?

Categories:
  • ivan_apps Profile Picture
    2,187 Super User 2025 Season 1 on at
    Re: when do values get updated using lookup fields in function fields

    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

  • HansHeintz Profile Picture
    674 on at
    Re: when do values get updated using lookup fields in function fields

    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.

  • HansHeintz Profile Picture
    674 on at
    Re: when do values get updated using lookup fields in function fields

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

  • a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: when do values get updated using lookup fields in function fields

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

  • Shawn11 Profile Picture
    152 on at
    Re: when do values get updated using lookup fields in function fields

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics