dbTalk Databases Forums  

AVG() function in calculated member function -newbie quesion

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


Discuss AVG() function in calculated member function -newbie quesion in the microsoft.public.sqlserver.olap forum.



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

Default AVG() function in calculated member function -newbie quesion - 10-19-2006 , 07:07 AM






Hi ,

I'm new to OLAP cube design and I have a very basic question.
I need to create a cube with a calculated member for finding avg()
The logic for getting avg is same as shown in the below sql

SELECT
colA,
colB,colC,AVG(colD),
FROM table1
GROUP BY
colA,
colB,
colC

I have different dimensions for colA, colB and colC and colD is the measure.
Can someone help me out writing the MDX query for calculating the AVG()

Thanks a lot for the help.

Rgds
Maneesh mathew.



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.