on most projects, the structure of schedule and cost performance reporting is based on the project wbs and the reason for this is not farfetched since wbs is a deliverables-driven hierarchical structure. planning tools such as primavera p6 have a feature that enables schedulers and planners to replicate the project wbs and this is why activities in a schedule are predominantly grouped by work breakdown structure.
one drawback of grouping activities only by wbs is that it is a rigid structure with little or no room for manoeuvring and this is where primavera p6 activity codes come in handy. activity codes (all 3 types; global, eps & project) give planners and schedulers the flexibility to categorise activities in many ways therefore enabling the grouping, filtering & reporting of activities using custom set of data outside of wbs, 世界杯时间比赛时间 and dates.
in this tutorial, we will explore different ways we can use activity codes to present schedule data. this tutorial is aimed at p6 beginner or intermediate level users and all screenshots are from p6 r16.2.
in the gantt chart shown in figure 01, you will notice that the activities are grouped by our wbs structure shown in figure 02, so in this tutorial, we are going to group the same activities shown in the gantt chart using different categorisations.
types of activity code
according to p6 help, “an activity code can be one of three types: global, eps, or project. global activity codes organize activities across all projects in an organization. eps activity codes organize activities within a specific branch or node of the enterprise project structure (eps). project activity codes categorize activities based on specific features within a project”.
this tutorial will focus on project type activity codes and this is because project activity codes are included in an exported xer file.
defining activity codes
while in p3 you could create an activity code on the fly, in p6 all codes have to be defined in the activity code dictionary before they can be assigned to an activity, so let’s define the following project activity codes and values:
- stage gate: 20-week gate, 12-week gate, 6-week gate, 2-week gate
- manager: dennis wise, ruud gullit, eddie newton, franco zola, steve clark
- team lead: frank lampard, didier drogba, petr cech, celestine babayaro, john terry
- priority: very high, high, medium, low, very low
- mode: mobilisation, working, standby, breakdown, weather
- location: head office, north, south, east, west
step 1
from the p6 menu, click on enterprise > activity codes to open the activity code dialog and select the project radio button as shown in figure 03.
now click on the modify button and this will open the activity code definitions – project dialog as shown in figure 04.
step 2
in the activity code definitions – project dialog, click the add button and in the activity code name, enter stage gate and in the max length box, enter 3 as shown in figure 05. (max length is the number of characters you would like your code value to have and the limit is 32. my personal preference is to keep it between 1 and 5 so that i can easily display the code in a column on my gantt chart).
step 3
next, repeat step 2 to define the remaining activity codes as shown in figure 06.
click the close button to exit the activity code definitions – project dialog and return to the activity codes dialog.
adding activity code values
step 4
now that we have defined our activity codes, we can now add values to them. in the activity codes dialog, click the select activity code dropdown box and select any of the activity codes we just defined, e.g. stage gate (p6 will add the project id as prefix), so in this example the activity code will appear as acd – stage gate.
step 5
click the add button. your dialog should look like figure 07 with (new) shown under code value column and (new code value) under description column.
now click the (new) and overwrite it with 20w (remember max length for stage gate is 3, so we can only enter 3 characters) and also overwrite (new code value) with 20-week gate as shown in figure 08.
step 6
repeat step 5 to add the remaining values for stage gate activity code as shown in figure 09.
step 7
now repeat steps 4 to 6 to add values to all the defined activity codes in project as shown in figure 10.
assigning activity codes
step 8
now that we have defined our activity codes, we need to assign them to activities and below are the 3 ways that i like using to assign activity codes.
method 1: column fill down
add an activity code column (field), e.g. manager, to your layout and double-click any cell in the newly added column to open the select activity code dialog as shown in figure 11. the first time you do this, you will get a blank dialog. click on display: current project’s values > filter by > all values and you should have all activity code values for manager listed.
double-click on the value (dennis wise in this example) you want to assign to the selected and you should have the value dw displayed in the manager column as shown in figure 12.
still with the cell we just added a name to selected, hold the ctrl key and click on other activities you want to assign the a manager code to (if they are sequential activities, instead of ctrl key, hold the shift key and click the last of the sequential activities) and right-click to display a context menu (pop-up menu). from the context menu, select fill down as shown in figure 13.
this will now fill the selected cells with the value dw as shown in figure 14.
you can repeat this process to assign different manager codes to the remaining activities as shown in figure 15.
method 2: context menu
select any activity and then right-click to display the context menu. from the context menu, select assign > activity codes to open the assign activity codes dialog and in the assign activity codes dialog, ensure that the project radio button is selected as shown in figure 16 since the activity codes we defined in steps 1 to 7 are project activity codes.
double-click an activity code value to assign it to selected activity. with this method, you can select multiple activities and assign same code value to them without closing the assign activity code dialog.
method 3: details form
select an activity and in the activity details form, click on the code tab and then the assign button to open the assign activity codes dialog as shown in figure 17. in the assign activity codes dialog, ensure that the project radio button is selected and then double-click an activity code value to assign it to the selected activity.
just like in method 2, you can select multiple activities and assign same code value to them without closing the assign activity code dialog.
grouping by activity codes
step 9
click on view > layout > save layout as menu and this will open the save layout as dialog as shown in figure 18. in the layout name textbox, type in a suitable name for your new layout and in the available to dropdown box, select project (so that the layout is always available to the project even when the project is exported to another database) and click on the save button.
step 10
click on view > group and sort by menu to open the group and sort by dialog. under the group by column, select the activity code to group activity by (in this example, manager code is selected) as shown in figure 19 and click ok to return to the layout.
activities in the schedule should now be grouped by the manager activity code values as shown in figure 20 and remember to save the layout.
other examples of categorisation by activity codes are shown in figures 21 and 22.
conclusion
while this tutorial focused on using project activity codes to group activities, there are so many other ways to use activity codes such as:
- colour coding of gantt chart bars
- filtering activities
- generating schedule performance reports
hopefully, you are now in a position to explore project activity codes in greater details and find more uses for them.
want to learn more about using activity codes in primavera p6? check out our primavera p6 online course.