audit p6 global activity codes

i had a very simple question posed to me in the 世界杯2022亚洲比赛时间 member’s community area recently about auditing p6’s activity codes. it was this:

how can i prepare a report to see which projects use my global activity codes? ie: can i prepare a report where i can see all the “global activity codes” used in each project in my primavera p6 database?

posted by one our p6 trainees, it was a question i’d been asked before and so i was ready with my standard answer….

“it sucks, but you can’t really do that in p6.”

i think i give that answer fairly often, and it highlights the need for more flexibility and features to be added to our dear primavera p6 software, but that’s a whole separate blog post ;).

but once in a while, i do get very curious to see if something can be solved, somehow.

recently i’ve been listening to malcolm gladwell’s excellent podcast “revisionist history” and it’s got me thinking alot about challenging assumptions and the status quo.

true, i’m not yet ready to buck the status quo on a lot of things, but maybe i could improve how quickly i am prone to give my pat answer “p6 won’t do that.”

activity codes really do rock

one of the best features in primavera p6 are activity codes.

they let you get majorly categorizical with your projects 10,000 activities. they let you filter, group, slice, dice and puree your project data in umpteen ways.

activity codes help in oh so many circumstances to add an additional layer of organization to a p6 project. some of us would be lost without them.

they’re great, but also they can get truly unruly.

to be fair, global activity codes are the problem.

since they can be used across multiple projects and new entries are easily imported with an xer file, global activity codes can seemingly spread like locusts in your p6 database, making a big mess.

(ok, maybe locusts is not the right analogy, but i think you get the idea).

how to build a report to audit p6 global activity codes

so i got curious, dug in and figured out how to generate a report that tells you which global activity codes are used on which projects.

want to try it yourself?

here’s how to build the p6 global activity codes audit report.

0) understanding the data first

just wanted to mention that this report runs only on projects that you have opened.

so if you want to audit which p6 global activity codes are assigned to a group of projects, you’ll have to open them all first simultaneously, then run the report.

if you want to audit all global activity codes, then you’ll have to open all of your database’s projects and run the report.

don’t worry. p6 should be able to handle it.

i have over 250 projects in my database and i can open them all at the same time with only a slight impact on my pc’s performance.

1) create a new report in p6

it helps to have at least 1 (or even a few) projects opened before you get started on this.

from the activities screen, goto tools menu -> report wizard.  create a new report.

from the first subject area list, choose activity codes.

refine the subject area as shown, choosing activity code assignments, and clicking next.

refine the subject area

 

2) choosing columns & grouping options

if you’ve never built a report using this wizard before, then you should know that each subject area can have it’s own set of columns and grouping options.

so here we will first set columns & grouping for the activity codes subject, then for the activity code assignments subject.

here are the columns we will want for the activity codes subject.

 

refine the subject area

now the group & sort options. let’s group the p6 report data by activity code type scope. (this defines what type of activity code it is, either global, project or eps.)

refine the subject area

moving on the 2nd subject area, activity code assignments. pick these columns.

refine the subject area

now set the grouping to be by project.

make sure you check on “show summaries only”, otherwise you’ll get a monster activity report.

we’d prefer to have summarized data to keep it simple.

refine the subject area

there are no filters to set for either subject area.

i find that sometimes if you do try to filter, say including just global activity codes, the report output isn’t right. so leave the filters out for the moment.

click next in the wizard, until you see the button to save the report.

name the report and save it.

3) previewing the report output so far

note: remember to open a bunch of projects first before running the report.

to run a preview, from the reports screen (tools -> reports ->reports), right-click on the report and choose run -> report.

then choose to send it to print preview.

if you run a print preview on the report from here, you should get something that looks like this.preview the p6 report output

ugh. i know, it’s disappointingly crappy output.

why?

primavera p6’s report wizard will only take this global activity code report so far.

using the wizard, you have no control on layout, and for some reason the columns are always lacking in width.

but if you’re not afraid to get dirty, we’ll fix it up and get something we can use.

4) improving the p6 global activity code audit report

ok, so close the preview.

right-click on your report and choose modify.

modify the p6 global activity code report

 

prepare to enter a whole new world – the p6 report editor.

not many of us venture into the p6 report editor too often, so i hope you’re ready for a further trip to the ugly world of 1990s user interfaces. yuck!

the first thing i want to do is to fix the scrunched data by moving columns out. this image shows what i’m going to move.

move these data columns

at the same time, i’m going to expand the project name column and the two above it like so.

columns expanded

that’s better.

5) adding a new data element to the report

one thing that would make this report even more helpful is to know exactly in how many projects a particular global activity code is being used. is it 5 projects? or 350 projects?

we can add a project count to the report. here’s how.

i’m going to click in the row to the right of bolded activity code type (just below the blue highlighted data source header area).

by clicking there, i should be highlighting the entire row.

now i can click the “ab” icon at the top toolbar of the editor – the one that says “add text cell” if you hover over the icon.

this adds a new data cell or column to the report. here are the setting for the properties popup box.

note: i had to drag the properties box window wider to see the full column names in the dropdown list. try it.

add a cell to the report

just click the x on the box to close it.

now, click save in the bottom right of the editor to save your report.

now we’re done.

6) previewing the p6 global activity codes final report

it’s time to see what the final output of the report looks like.

note that i did remove some extra column headers that weren’t needed to clean it up a bit and i renamed one header as well. i also expanded the width of the report to 11 inches.

things for you to try as well.

previewing the p6 global activity codes final report

 

how can i use this report to audit my p6 global activity codes?

well, we can finally answer the question:

which primavera p6 global activity codes are being used and on what projects?

if you’re an administrator of a primavera p6 install, this report can help you see which activity codes can be purged and which can be kept.

you could also use this report on individual projects as well like say a project imported from a subcontractor. you would be able to quickly see which global activity codes are in use.

i hope you get lots of good use out of it.

having trouble getting results from the report?

some folks have had trouble getting the report to work. if that’s you, try downloading my report file (.erp) and importing it into your p6 install.

to import the .erp file below, first unzip the archive. in p6, goto the reports screen. right-click and choose import. import the .erp file. run the report.

download report .erp file

 

is this report any good? leave me feedback in the comments.

p6 advanced course - master advanced p6 features and tools - course preview