Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
reading / Primavera P6™ Project.pdf
Скачиваний:
0
Добавлен:
12.06.2025
Размер:
10.82 Mб
Скачать

Customizing Reports 477

Sorting Report Data Sources

You can sort a report’s records by applying a sort order to one or more of the report’s data sources, and edit a report’s sort order by changing the sort settings for one or more of the report’s data sources.

Sort a report

1Double-click the data source whose records you want to sort.

2Click the Source tab, then click Add.

3Select the field by which you want to sort the data source’s records.

The list of available sorting fields reflects the sort object you select from the Sort by Object list.

4To sort records in ascending order, choose Ascending. To sort records in descending order, choose Descending.

5Click OK.

To sort by additional objects and fields, repeat steps 2 through 4.

Edit sort orders for reports Double-click the data source whose sort order you want to edit; click the Source tab.

To add a new field to the sort order, click Add, then type the sort criteria. Click OK, then change the field’s position in the sort order, if necessary.

To delete a field from the sort order, select a sort row, then click Delete.

To change a data type’s position in the sort order, select its sort row, then click the appropriate arrow button.

To edit a sort row’s sort object or field, select the row, then click Edit.

Primavera - Project Management

478 Part 5: Customizing Projects

Customizing a Report with the Report Editor: an Example

In this example, we use the Report Editor to customize a report, originally created with the Report Wizard. To view the original report, select the ‘PP-01 EPS, Project Details’ report under the report group Project/WBS details. The original report, depending on your project data should be similar to this:

Primavera - Project Management

Customizing Reports 479

After customizing, the same report has the following layout:

b) Only projects that have more than one activity are displayed.

c) Double line separator.

c) If Risk Level is ‘High’ or ‘Very High’, the field is highlighted in red.

a) Sorted by Strategic Priority order.

d) The new column, Project Status, displays only if the Risk Level is ‘High’ or ‘Very High’.

To customize the original report in the Report Editor:

1In the Reports window, select the original report created in the Report Wizard (PP-01 EPS, Project Details).

2Click Copy.

3Click Paste.

Primavera - Project Management

480 Part 5: Customizing Projects

4Double-click the name of the copied report and rename it, so you can remember which one is customized.

5While the new report is selected, click Modify... .

Since the original report was created in the Report Wizard, a warning appears that you are about to modify the report. Confirm your decision by clicking the Yes button.

The Report Editor displays.

Filtering and sorting the data source The current report displays all projects, regardless how many activities they contain. You may want to filter the data source to show projects that have more than one activity. You may also want to sort these projects by Strategic Priority.

To filter and sort the data source:

1Double-click on the Data Source Header Area. The Properties window displays.

Primavera - Project Management

Customizing Reports 481

The selected tab shows what component’s properties you can modify currently.

Click to edit the filter criteria for the data source.

Click to sort the source data by a field.

2Click the Edit filter... button.

The current filter criteria displays all Project and EPS nodes but filters out the WBS nodes.

3Click Add.

4Set the filter criteria to show data only if the Total Activities is greater than one.

Primavera - Project Management

482 Part 5: Customizing Projects

5Change the (Any of the following) logical operator to (All of the following).

To create a new filter line, you can copy/ paste an existing one, and then modify its properties.

6Click OK.

7Click the Add button on the Properties window to sort the data source.

8Select Project for the Sort by Object field and Strategic Priority for the Sort by Field.

9Click OK.

10Close the Properties window by clicking the x at the top right hand corner.

11Click the preview icon to view the current report.

The Report Canvas does not display the actual height, or amount of vertical space, each report component will occupy in the compiled report. To view the report's vertical spacing and your progress, you can always click the preview icon to view the report.

Primavera - Project Management

Customizing Reports 483

Adding a new filtered column To display the project status, you have to add a new column to the report. You may want to show the Project Status field only if the Risk Level is ‘High’ or ‘Very High’.

To add a new filtered column

1Select the row that you want to add the new column. The row is highlighted in blue.

2Right-click the row and choose Add Text Cell.

The Properties window displays, now showing the Cell properties.

3Set the Cell Object to WBS, and the Cell field to Project Status.

You may want to set the cell properties to adjust position and alignment as well.

If you accidently moved or resized a cell, you can set the exact position and size here.

Primavera - Project Management

484 Part 5: Customizing Projects

4Click the Edit filter and set the filter criteria to display the cell only if the Risk Level is ‘High’ or ‘Very High’.

The window title displays the scope of the filter. In this case, the filter applies to the selected Cell.

To quickly create the second filter condition, select the first one first, copy/paste (Ctrl+C/ Ctrl+V) it, then change the value, ‘Very High’ to ‘High’.

Make sure you set the logical operator to (Any of the following). Note that this time the filter criteria apply to this cell only and not to the whole report.

5Click OK.

6Close the Properties window.

7Add a header, titled ‘Project Status’ to the new column.

You can either follow the steps above to add this header to the Project Status column, or you can copy/paste the Strategic Priority cell first, then simply move it to the right and edit its properties. These cells are Custom Texts. Custom Texts do not display data, they show exactly what you type in the Custom Text field.

8Click the Preview icon to view the current report.

The new column should display only if the Risk Level is ‘High’ or ‘Very High’.

Primavera - Project Management

Customizing Reports 485

Highlighting the Risk Level field You may want to call attention to projects that have a risk level of ‘High’ or ‘Very High’ by displaying the field value in red. It is not possible to change the property of a field at runtime but the following tip may help to achieve the same result.

To highlight the Risk Level field in red:

1Select the Detail Area.

2Choose Add Row from the right-click menu.

3Copy the cells from the first row and paste them into the second one.

If you preview the report now, you see double records, since we created two rows with the exact same data.

4Double-click the Risk Level cell in the second row.

5Set the Font Style to Custom, and click Custom Font... to change the color to red.

Do not close the Properties window yet. You can work on the Report Canvas while the Properties window is still open. It may speed up your work with setting properties of different components on the screen.

6Click the first row in the Detail Area.

Since the Properties window is still open, it should display the Row tab now. Make sure you click the row and not a cell in the row.

7Click the Edit filter... on the Row tab.

8Set the filter criteria to display data only if the Risk Level is not equal to ‘High’ or ‘Very High’.

Primavera - Project Management

486 Part 5: Customizing Projects

9Click OK.

This condition allows to display the selected row only if the condition is true. In this case, the data displays only in this row if the Risk Level is not equal to ‘Very High’ or ‘High’.

10Click the second row in the Detail Area.

11Click Edit filter, and set the filter criteria to show data only if the Risk Level equals to ‘High’ or ‘Very High’.

12Close the Properties window and preview the report.

The conditions we set for the rows allow us to show only one row at a time. If the Risk Level is ‘High’ or ‘Very High’, the second row displays, if the Risk Level is neither ‘High’ or ‘Very High’, the first row displays. Since all the cells are the same in the two rows, except the Risk Level color, it seems as if the cell was highlighted in the report.

Primavera - Project Management

Customizing Reports 487

For specific details refer to the help. Click the Help button on the dialog box to open the context sensitive help.

Working with lines Lines are displayed in Line Cells. You may want to use a double line, instead of a single line under the column headers. To modify line properties, double-click the Line Cell under in the Page Header area, and set the number of lines to two.

If you preview the report now, it should resemble to the layout we wanted to achieve. Close the Report Editor, and confirm that you want to save the current report. You can now run the report by clicking the Run Report...

button on the Reports view.

Primavera - Project Management