dbTalk Databases Forums  

How to improve performance for Custom Rollup Formula?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss How to improve performance for Custom Rollup Formula? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Baolin Ren
 
Posts: n/a

Default How to improve performance for Custom Rollup Formula? - 04-19-2004 , 12:07 PM






Hello,

I use Custom Rollup Formula to calculate the aggregations for one
dimension. The formula is like:

Iif(
Isleaf(Time.CurrentMember),
CalculationPassValue([Measures].CurrentMember, 0),
Iif(
[Measures].CurrentMember.Name="Avg Audience",
Avg(Time.CurrentMember.Children),
Iif(
[Measures].CurrentMember.Name="Cum Audience",
Max(Time.CurrentMember.Children),
CalculationPassValue([Measures].CurrentMember, 0)
)
)
)
and I will have 3 more other measures need to be put into the formula
with different calculations. When browsing the data, it took a while
to load. I am afraid that OLAP was calculating the aggregation when I
browsed the data. I have two questions:

1. How can I force OLAP calculate the aggregated data when processing
the cube?
2. If 1 is impossible, how can I rewrite the Custom formula to improve
the performance when browsing data.

Thanks,

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: How to improve performance for Custom Rollup Formula? - 04-20-2004 , 09:19 PM






No aggregation will occur above the lowest level where custom rollup
applies, so your best bet may be to use other approaches. See this
earlier thread on the subject:

http://groups.google.com/groups?hl=e...8&edition=us&s
elm=3E8BFEC4.E35C4AE%40dsslab.com
Quote:
From: George Spofford (george (AT) dsslab (DOT) com)
Subject: Re: Missing aggregations in partition
View: Complete Thread (7 articles)
Original Format
Newsgroups: microsoft.public.sqlserver.olap
Date: 2003-04-03 06:29:48 PST

(answers inline)

MrAbeille wrote:

Quote:
I use MOLAP mode and I use custom rollup formula on each
level of my Product dimension:

Sum([Product].CurrentMember.Children) / Count
([Product].CurrentMember.Children,INCLUDEEMPTY)

You mean the custom rollup formula cannot be pre-
aggregated, don't you?

Yes.

Quote:
So do you think it's a good idea to avoid custom rollup
formula, for instance by using default aggregations and
calculated measures to do the count and the division?

Yes, that is exactly the way I would build it.

Quote:
What is the interest in designing custom rollup formula if
we can't use precalculated aggregates??

For when precalculated aggregates can't help you. Actually, I think that
there are very few good uses for custom rollup formulas, and that most
cases I've seen where people use them would be better handled using
calculated members.

Quote:
Why do I have the Class and Family levels involved in
aggregations proposed by the wizard if I cannot pre-
aggregate custom rollup?

Because the agg wizard has no knowledge of which levels have the
formulas and which ones don't.
...
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.