I have a calculated Measure in my SSAS cube, which I want to calculate only for a group of dimension members and for rest it should be zero. In The following image I want MTDOccupancy dimension to work only for Account Groups for Rooms, rest related to food should show zero for this field.

following is the simple MDX which I am using for MTDOccupancy measure
([MTDQuantity]/[MTDAvailableRooms])*100
select * from tablename where AccountGroup like 'ROOMS%'- wiretextSCOPEoperator to set the value asNULLfor the required members. It is faster than calculated member approach since it is cached. - SouravA