Suppose there are two columns A and B with different formatting: for example, A has Currency formatting, B has Number formatting, and C is a column that has a different category.
If a custom expression such as
CASE when First([C])="X"
then (Sum([A])) When First([C])="Y"
then (Sum([B]))
end
is used in a Cross Table, then the formatting of the columns will be lost and the column will be displayed without any formatting. To achieve formatting, use an expression as shown in the Resolution below.