Tuesday, November 5, 2013

Primavera P6: Time Distributed Reporting and Microsoft Excel

by TheP6Pro

It’s common practice to use Primavera P6 Professional’s Time Distributed reports feature to create time-phased tables of data that are then exported to Microsoft Excel. However, if you’ve ever done this you may have noticed that in many cases the Subtotals row can be one column too far to the left.

clip_image002

This misalignment invariably requires you to go through the entire spreadsheet deleing cells to bring the data back into alignment.

However there’s a better way to permanently solve this problem and good old Ten Six Consulting will show you how right now.

In the Reports view, right-click on your Time Distributed report and choose the Modify button.

clip_image004

When you see the following prompt, click the Yes button.

clip_image005

Clicking Yes will open the Report editor as seen below. This is the underlying canvas that gets created by the wizard when you initially build a report. While it is possible to build a report from scratch using this feature, we do not recommend it as it can be a little time consuming: rather you should always create your reports first using the Report Wizard.

clip_image007

The Report editor allows you to add or remove fields used in the population of the final report output in P6. In this case we’re going to add a field to the sub-total row in order to solve our issue with the misaligned spreadsheet data. The Subtotal field is spanning the space of the Activity ID and Activity Description fields in the data row above. Therefore the subtotals get written on a row that has one less column.

Adding a new field to the Report

First we need to make some room for a new field, so we click on the right-hand end of the Subtotals field and drag it right to about half its original size.

clip_image009

Now we right-click on the row behind the Subtotal field and from the menu choose Add Text Cell.

clip_image010

This places a text cell on the same row, at the far right end and opens the cell’s Properties dialog.

clip_image012

In the Cell type field, select Custom Text and then close the properties dialog using the small x button at the top right.

clip_image013

The next step is to drag the new cell over to the left of the row. This will add a column to the CSV file that is opened by Excel in the final stage of this process.

clip_image015

Without further modification this cell placement won’t look very pretty in the report preview; however as it’s primarily for creating spreadsheets that doesn’t matter.

Finally click the OK button to close the report editor and then run the report, saving it to an ASCII text file using the example settings below.

clip_image016

In the final spreadsheet, you can see that the addition of a new text field has caused the data to come out correctly in line with the headers.

clip_image018

Thanks Ten Six.

No comments:

Post a Comment