dbTalk Databases Forums  

Calculate aggregated average

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


Discuss Calculate aggregated average in the microsoft.public.sqlserver.olap forum.



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

Default Calculate aggregated average - 02-05-2006 , 02:21 PM






Hi,

I have an aggregation problem with my cube in Analysis Services 2005. I
created a parent-child-dimension with three levels containing questions on
the lowest level and two levels of categories above. The fact table contains
integers between 1 and 6 (answers from several respondents to the
questions). Additionally there is a calculated member for the average of all
answers to achieve meaningful results.

On the lowest level (level of single questions) the average of all answers
is calculated properly, but the subtotals (level of subcategories and
categories) are wrong. Problem: The single averages are simply added up
instead of calculating its average.

I know this should be avoided with custom rollups - but I didn't succeed
yet. I added a MDX attribute to the question table containing a specific MDX
expression in the case of a categories entry and NULL in the case of
question entry. After assigning the MDX attribute to the parent as a
"CustomRollupColumn", the average of the subcategory is calculated
correctly - but all averages of the single questions disappear! What's
wrong? :-)

Hope anybody can help, try to solve that for a long time now.... :-/ Thanks
in advance!

Nikolas



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.