To list the fields in the columns of the pivot, they must be defined in the FieldName of the Columns. The field names must be same as the field names defined retrieval criteria. The fields must be non-numeric fields.

"expand" attribute can be used for specific FieldName to expand or collapse that field(dimension) by default when pivot is rendered.