I found that this method sometimes leads to empty cells on the right hand side of the crosstab - I believe due to a bug in Cognos.
Here I describe another way to do it that works fine.
- Add an empty first row to the crosstab by bringing in Crosstab Spaces.
- Set the text of these... add one for each column on the left hand side of the crosstab.
- Set "Define Contents = Yes" for all the facts cells in this first row
- Unlock the editing (lock icon)
- Drag a Text Item into each member cell and set the text to be the column heading of each column in the top (horizontal) side of the crosstab
- Hide the topmost row of the corsstab by setting Box Type = None
a crosstab that looks like this:
| measure1 | measure2
----------------------------------------+----------+---------
dimension member 1 | dimension member 2 | <1234> | <1234>
+--------------------+----------+---------
| dimension member 2 | <1234> | <1234>
+--------------------+----------+---------
will look like
| measure1 | measure2
| |
-------------------------------------------+----------+---------
crosstab space | crosstab space | textitem | textitem
member1" | "member2" |"measure1"|"measure2"
----------------------+--------------------+----------+---------
dimension member 1 | dimension member 2 | <1234> | <1234>
+--------------------+----------+---------
| dimension member 2 | <1234> | <1234>
+--------------------+----------+---------