Primavera P6 is capable of doing a lot of calculations on its own, but in some cases, you need to create your own custom calculations and store them in a user defined field. In this example, we'll show you how to write a formula in Primavera P6 that takes the value of the Free Float field and copies it to a user-defined field called UDFText:
To begin writing a new formula in Primavera P6, go to Tools > Global Change...
In the Global Change window, click the New button to create a new formula:
In the Modify Global Change window, select Activities for the Subject Area and provide a Global Change Name which is really the nickname for your formula:
In the next section, create a rule that applies any time that the Free Float field has a value. This example rule literally states "Where 'Free Float' is not equal to nothing", which in layman's terms means "The rule applies when Free Float is populated".
Click into the next section and then click on the Add button. Then, write the formula that sets the UDFText field equal to whatever value is in the Free Float field:
With the formula written, click on the Change button to apply it:
When the global change prompt appears, click Yes:
Once the global change confirmation has been processed, and the formula applied, you'll see a confirmation of the changes, and should click Commit Changes at the bottom:
When prompted to save the log file, click No.
Close any remaining open windows to double-check that the formula was applied correctly. In this example, the UDF Text field now contains the same values as the Free Float field: