You can use the MDX subroutines Initialize_Elim and Eliminate_Org in your dimension rules formulas.
You can use the following features of MDX subroutines:
Initialize_Elim
Initializes an elimination organization with a specified value.
eliminate_org
Performs an elimination on the given organization.