for my year, month, week, i have the ff custom rollup formula (gets the
lastchild for a headcount measure):
IIF([Measures].[CSA Headcount] is [Measures].[HeadCount]),
CoalesceEmpty(Time.Lastchild, Time.CurrentMember.PrevMember),
Avg(Time.CurrentMember.Children))
Then I have 2 other dimensions which also have a member formula(computes for
the sumproduct): (for site and for program)
IIF([Measures].CurrentMember is [Measures].[Headcount],
sum(site.CurrentMember.Children),
IIF([Measures].CurrentMember is [Measures].[Utilization]
sum(site.CurrentMember.Children,[Measures].[Headcount]*[Measures].[Utilization])/[Measures].[Headcount],
IIF([Measures].CurrentMember is [Measures].[Other Utilization],
IIF([Measures].[Peak]=0,sum(site.CurrentMember.Children),
sum(site.CurrentMember.Children,[Measures].[Peak]*[Measures].[Other
Utilization])/[Measures].[Peak]),sum(site.CurrentMember.Children))))
hope you could help me optimized my code or have other options to make my
query faster. Thank you so much Deepak!
"Deepak Puri" wrote:
Quote:
Can you give a general idea of the custom rollup on the time dimensions,
and of the query with poor performance?
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |