First let me start with the business requirement. I need to return the average of all values less than or equal to the 95th percentile of a measure. The new measure needs to be a calculation in the cube so users can use it in Excel. I believe that the BOTTOMPERCENT function may help derive the correct answer but I cannot figure out the proper MDX.
Let me translate this into Adventure Works. The Reseller Average Sales Amount divides the Reseller Sales Amount by the Reseller Order Count. The calculation is:[Measures].[Reseller Sales Amount] / [Measures].[Reseller Order Count]
I want to sum the bottom 95 percent of Reseller Sales Amount and divide by the corresponding Reseller Order Count. I want to exclude any data where Reseller Sales Amount is empty.
If anybody could provide the MDX, it would be much appreciated.
Rob