dbTalk Databases Forums  

Custom Rollups

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


Discuss Custom Rollups in the microsoft.public.sqlserver.olap forum.



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

Default Custom Rollups - 10-25-2004 , 02:49 PM






I´m having a problem with custom rollups for a Survey´s cube.

I have the following structure on the subject matter db:

Survey_Code SK_Question Answer_Value Q_surveys
01042-26-05-2004 4 9 61
01042-26-05-2004 4 6 61
01075-02-07-2004 4 5 32
01075-02-07-2004 4 7 32

So, Q_Surveys (quantity of people who answered the survey) repeats on each
question of each survey.

I need to make a measure or calculated member to represent the Q_Surveys for
more than one survey or question.

By now, we where making a MAX, but aggregations need to show the sum. We did
that for the dimension with a custom rollup formula at the "dimension level":

Survey (dimension)
( all member formula:
SUM({[Codigo Encuesta].[Codigo Encuesta].Members},
[Measures].[C_Encuestados x Preg]
)

º Survey Year
ºº Survey Month
ººº Survey Code

There we have the total for all surveys fine but not by month or by year. If
i use that code for the custom rollups of the other levels I get the sum of
max(q_surveys) (which is the same as the dimension total).

Any help is highly appreciated, sorry about my english.

Thanks in advance,

Julieta


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

Default Re: Custom Rollups - 10-25-2004 , 11:30 PM






Can you create a separate cube for the Q_Surveys measure, with only a
single fact record per question/survey combination? This cube can be
combined with the other in a virtual cube, and no custom rollup should
then be needed.


- 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.