2026-11-12 · 5 min read

WBS and Activity Codes in P6: Structure a Schedule You Can Actually Filter

A schedule with good logic and poor structure is still hard to use. When the site manager asks for "everything in Level 2, east zone, for the next three weeks" or the client wants "all the electrical work by building", you should be able to produce it in a minute, not an afternoon.

That comes down to two things in Primavera P6: the work breakdown structure (WBS) and activity codes. This article explains what each is for, how to split information between them, and how to set them up so filtering, grouping and reporting stay easy for the life of the project.

WBS and activity codes do different jobs

The most common mistake is trying to make the WBS do everything.

So the WBS answers "where does this activity live?" and activity codes answer "what else do we need to know about it?" Keep the WBS clean and put the extra dimensions into codes.

Choosing the primary WBS breakdown

Pick the breakdown that most people will use most of the time. On construction projects, common choices are:

A typical construction WBS uses a mix at different levels, for example:

  1. Project
  2. Milestones and key dates
  3. Design and approvals
  4. Procurement
  5. Construction, broken down by building, then level
  6. Testing and commissioning
  7. Handover

Keep it to three or four levels where you can. Deep WBS trees look thorough but make the schedule harder to read and slower to navigate.

What to put in activity codes

Once the WBS holds the main breakdown, use activity codes for everything else people filter on. A practical starting set for a building project:

Code type Example values Used for
Area / Zone L1-East, L1-West, L2-East, Roof Area look-aheads, progress walks
Trade Civils, Structure, Envelope, Mechanical, Electrical, Finishes Subcontractor reports
Responsible Main contractor, Client, Designer, Subcontractor name Who owns the action
Phase Enabling, Shell, Fit-out, Commissioning High-level reporting
Activity type Design, Approval, Procurement, Install, Test Filtering out non-site work
Look-ahead flag Yes / No Short-term planning views

Start small. Five or six code types that are filled in consistently beat twenty that are half complete.

Global, EPS or project codes

P6 lets you create activity codes at three levels:

If you work in a shared company database, check with whoever administers it before creating global codes, because everyone will see them. For a single project, project-level codes are usually the safest choice and travel with the project when you export an XER file.

Setting up codes in practice

The general workflow in P6 is:

  1. Open the Activity Codes dictionary from the Enterprise or Project menu (the exact menu location varies slightly by version).
  2. Create a code type, for example "Area".
  3. Add the code values, each with a short value and a description, for example "L2E" with the description "Level 2 East".
  4. In the Activities window, add the code type as a column, then assign values, either one at a time or by selecting many activities and filling down.

Some tips that save time:

Activity ID conventions

Activity IDs are another way to carry structure. A readable convention, such as a prefix for area and trade followed by a number, helps people find activities quickly in a printout. For example:

Do not rely on IDs alone for filtering. They are harder to change later, and one renumbering exercise can break references in correspondence. Use codes for filtering and keep IDs stable once the schedule has been issued.

Turning structure into useful views

The payoff comes when you save layouts and filters that use the structure. A few that are worth setting up early:

Save each as a named layout so anyone on the team can open it and get the same result. Name them clearly, for example "03 Area 3-week look-ahead", so they sort in a sensible order.

Keeping the structure clean over time

Structure tends to decay during a project. New activities get added in a hurry, codes are left blank and the WBS gets an "Other" element that grows each month. A short routine keeps it under control:

The Microsoft Project equivalent

Microsoft Project does not use the same terms, but you can achieve much the same result:

The principle is the same in both tools: one clean hierarchy, plus a small set of consistently filled tags.

A quick checklist before you issue a schedule

Getting structure right takes an hour or two at the start of a project. It saves that time back every week in look-aheads, subcontractor reports and client meetings, and it makes the schedule something the whole team can use rather than a file only the planner can read.

One practical scheduling lesson every week, from 25 years planning big, complex builds. Join Critical Path Notes Weekly.