04.04 - Column Headings

Overview

As a part of the process of creating paper-like management reports, it is useful to be able to take control of the labels applied to column headings, remove clutter and drive them dynamically.

Here is a video, or read below.

27ae1187-2fd7-4b43-9c95-68b04e342e5c

Setting Column Headings

To configure column headings, switch to the “Layout” tab and select Rows / Columns

a73966b5-debe-434c-b460-6a84c48d17ba

… and switch to the second tab of the Rows / Columns dialog.

78d89856-385f-4b35-b87d-67f240c885c7

This displays the column heading for every column in the report along with a … button that takes the user to the individual “Set Column Caption” dialog shown below.

This can also be reached without going into the Rows / Columns dialog by right clicking on a column header in the grid and selecting “Set Column Caption” as below:

de178129-9dee-41b2-8627-434c119ac38b

The columns captions dialog, is very similar to the report title dialog from section 04.03

74a04b0d-df23-4df0-baf1-a7386c713a10

The dialog contains:

At its simplest the user can simply type the caption they want to see into the expression and that is what they will get.

Eg:-        Actual for September 2011

But where a report is likely to be re-used year on year or some other selections in the across axis could change from time to time, the option to build something a bit more dynamic, is powerful.

Syntax

The dialog is very much designed to be point and click but those clicking actions do generate an expression which has a syntax which is useful to understand. The syntax itself is similar to that used by the Report Titles system, though the list of available parameters is much reduced.

As with report titles, anything inside curly braces is a parameter and anything outside is literal text.

Eg:-        {Caption([Year].[CurrentYear])}, Period 9, Actual

Might produce “2011, Period 9, Actual

Parameters

Items in this Column Group

At the time of writing, the Items in this Column group is the only group provided.

It contains one entry for each field item that makes up the columns and they are presented in the order that the fields are organised in the across axis.

6e16a3b1-b9b0-4355-9d7f-7a7c3ae7500c

There are a variety of ways in which a user might want to see information about such an item, so each provides a drop-down list of the various options along with the text (shown in italics) that the option will currently produce.

For example, the user may just want to display the caption of the item:

Eg:-        Month: {Caption(ColumnItem([Period]))}

which would produce “Month: Period 9.

Column Header Formatting

425d8625-5712-44a5-b778-fbce917b0c38

Column Captions and the cell header they are displayed on can be formatted using the palette button to the right of the preview area as shown above. Options cover all the usual formatting features ie: font, fill, alignment and borders.

Pretty Labelling and Resetting all Labels

Within the Rows / Columns dialog there is a control at the bottom left that can be used to rapidly configure the columns in the report:

2e82750f-2389-4d40-bfdc-185665581370

Reset, obviously sets the column caption text back to the default.

Pretty Nested Column Captions removes adjacent repeated labels in the outer fields making the column headers feel less less cluttered.

Turning this:

c2288cbd-952f-424e-956c-8c2e372f28de

into this:

3645378b-9eed-4865-b014-2739e80ee940

And this

e9c71af9-d7e9-430e-9441-d7cd30c7ea3a

into this:

7dffa23d-29a0-4cc0-bbe3-1429fcd874d1

Exercises and Tutorial Survey

04.04 Column Headings - Exercises.pdf

Your feedback helps us do better, to fill in a short survey on this tutorial, click here.

Powered By