I have student score data that I'm analyzing using icCube/OLAP/MDX. The number of students can range from tens of thousands to millions. Two problems:
Score distribution without a student dimension
- How can I do a score distribution without building a student dimension? At this scale, a per-student dimension is a non-starter for memory/performance.
Performant weighted average with sliceable context
Students have weights. I need a weighted average (WeightedAvg = Sum(Score_i * Weight_i) / Sum(Weight_i) )
This is a high-impact calculation performance-wise. Example: I want the full weighted average across all students, then I want the value for students in France only. The weighted average has to fully recalculate for that slice which heavily impacts performance at scale.
I defined the calculated member to get the score :
MEMBER [Actual Score] as Sum( [Students] , [Score] * [Weight] ) / [Weight]
But it’s taking a few seconds, is there any way to improve this ?