dbTalk Databases Forums  

calculate avg for a group

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


Discuss calculate avg for a group in the microsoft.public.sqlserver.olap forum.



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

Default calculate avg for a group - 05-11-2004 , 05:29 PM






I am trying to find an average balance for a group with
the following data sample:

Group_1 A 10
B 10

Group_2 C 15
D 25

Group_1 the avg bal would be 10 and group_2 the avg bal
would be 20.

Currently, everything is being summed. The following
function I used for some reason sums my balances instead
of returning the correct avg's.

avg([group].[group].allmembers)

where group is my parent dimension, [All group] is my
parent member, and allmembers is my SET. Lunch is on me
for anyone who can solve my problem. Thanks

Lam

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.