I'm relatively new to MDX and am trying to accomplish what I think should be an easy thing, but I haven't found any solution.
I have a sales cube and one of the measure is profit which can be negative or positive. I want to get one measure which is effectively the sum of positive profit, i.e. only include in the new measure those profit numbers that have a positive profit.
The trick here is this is on the row detail level and something like
WITH MEMBER Measures.PositivePNL as IIF (Measures.PNL > 0, Measures.PNL,0)
doesn't work as that only works with the aggregate number