I am working with a data cube that has a calculated member that is a percentage, and I need to get the aggregation for that member to be an average and not a sum.
Here is a screenshot or the cube in Excel:
The bolded percentages are a sum, which makes no sense for a percentage. How can I get them to be an average of the grouped percentages?
The Unit ID is one dimension, and the Order ID is a separate dimension. An order contains a set of unit IDs. I tried to create a separate calculated member for orders, but I do not know how to represent this set in MDX, though in SQL it would be very easy.
In other words, I want to represent the following SQL statement as a set in MDX:
SELECT [UnitSMA] WHERE [OrderKey] = <OrderKey>