dbTalk Databases Forums  

Average custom rollup on measure

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


Discuss Average custom rollup on measure in the microsoft.public.sqlserver.olap forum.



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

Default Average custom rollup on measure - 06-15-2004 , 04:31 AM






Hi,
i'm very new in MDX so please I need help on the following issue:
I have a cube with 4 dimensions and 1 measure PRICE. By default the PRICE is sumarized when rolling up, BUT I need an average to show?
Could you help me with the MDX syntax and where to put it?

Thnx in advnce,
Hrvoje

Reply With Quote
  #2  
Old   
Armando
 
Posts: n/a

Default RE: Average custom rollup on measure - 08-24-2004 , 03:05 AM






Hi Juraj,

thnx for reply. Yes, I'm trying to use AVG on time dimension.
That could be it.

Thnx again!
Cheers

"Juraj" wrote:

Quote:
Hi Armando,

Try

AVG( DESCENDANTS(<Dim>.CurrentMember, <Dim>.<Leaf Level>),
Measures.[price])

It is not clear on which dimension the average is based; is it average per
time, organization unit, product? There are couple of examples on the web how
to use avg() function.


Regards

Juraj

"Armando" wrote:

Hi,
i'm very new in MDX so please I need help on the following issue:
I have a cube with 4 dimensions and 1 measure PRICE. By default the PRICE is sumarized when rolling up, BUT I need an average to show?
Could you help me with the MDX syntax and where to put it?

Thnx in advnce,
Hrvoje

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.