I'm working on a SSAS cube for contracts for an energy company.
One measure is "Contract volume". They have both electricity and gas contracts. So the unit of contract volume is either km3 or MWh.
The measure "Contract volume" should preferably not be split on into Gas and El, but be kept in the same measure.
How do I show the different units to the enduser? Preferably I would use FormatString that is dependent on the contract type (the information is both in the underlying fact table and in a dimension). Can I do that?
Is there anyway I can make make gas aggregable with gas and el aggregable with el - but not gas aggregable el?
Edit: SQL Server 2008 R2 Multi dimensional
Edit: Thanks @Mike Honey Here is the code I ended up writing in the Script View:
SCOPE
(
{[Measures].[Measure 1],
[Measures].[Measure 2],
[Measures].[Measure 3],
[Measures].[Measure 4]}
);
SCOPE([Contract Type].[Contract types].[Energy].&[El].Children);
FORMAT_STRING ( This ) = "#,##0.00 \k\W\h;-#,##0.00 \k\W\h";
END SCOPE;
SCOPE ([Contract Type].[Contract types].[Energy].&[El]);
FORMAT_STRING ( This ) = "#,##0.00 \k\W\h;-#,##0.00 \k\W\h";
END SCOPE;
SCOPE([Contract Type].[Contract types].[Energy].&[Gas].Children);
FORMAT_STRING ( This ) = "#,##0.00 k\m\3;-#,##0.00 \k\m\3";
END SCOPE;
SCOPE ([Contract Type].[Contract types].[Energy].&[Gas]);
FORMAT_STRING ( This ) = "#,##0.00 \k\m\3;-#,##0.00 \k\m\3";
END SCOPE;
END SCOPE;