SSAS Cube - Create measure based on the a dimension attribute
You can try:


create a Calculated Member (clic on Calculation tab and then on
New Calculated Member 
define it with the MDX expression you want


In your case, it could look like that:


A more detailed example here.