dbTalk Databases Forums  

Aggregates problem

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


Discuss Aggregates problem in the microsoft.public.sqlserver.olap forum.



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

Default Aggregates problem - 10-08-2004 , 04:05 PM






Hi!, 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).

An help is highly appreciated, sorry about my english.

Thanks in advance,

Julieta

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.