Thanks. I was able to get this to work in an RS report, however it is too
slow. I calculate multiple percentiles per page.
Is it possible to store this as a measure directly in the cube so I can
speed up the query? I tried creating a calculated member but it did not
work. I tried modifying solve order so when the cube is processed it
created the averages I need before calculating the percentile, but I was
unable to get it to work.
Example:
Calculated member "Reg 80Pctile":
'Tail(BottomCount(Filter([Region].[Region].Members,
Not IsEmpty(Measures.CurrentMember)
And Measures.CurrentMember > 0) as FilteredRegions,
Int(0.8 * FilteredRegions.Count),
Measures.CurrentMember)).Item(0)'
Thank You,
___________________________
Daniel J. Zaccarine
Hanford Bay Associates, Ltd.
___________________________
"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote
Quote:
Hi Dan,
Assuming that you need a calculated member on the Region dimension,
which works with various measures:
With Member [Region].[Reg 80Pctile] as
'Tail(BottomCount(Filter([Region].[Region].Members,
Not IsEmpty(Measures.CurrentMember)
And Measures.CurrentMember > 0) as FilteredRegions,
Int(0.8 * FilteredRegions.Count),
Measures.CurrentMember)).Item(0)'
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |