Obiee offer the possibility to have differents measure aggregation rule based on the dimension.
This functionality is really tied to the last and first function (in order to define its grain ?)
The case function can be use in an aggregation based on dimension.