dbTalk Databases Forums  

Re: Multiply Prijs * Volume

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


Discuss Re: Multiply Prijs * Volume in the microsoft.public.sqlserver.olap forum.



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

Default Re: Multiply Prijs * Volume - 08-25-2003 , 10:42 AM






You're better off tracking sales and volume in teh cube and compute (what
will be a volume weighted) "prijs" (price) if you need it. Otherwise, you
need to use a calculated member using Descendants() to access the leaf data
from the current level. This can be quite time consuming if you have many
dimensions that you need to descend into to get the raw data. By design,
OLAP generally does its computations using values at the current level for
each dimension.

Jim
"Christiaan" <christiaan.vanapeldoorn (AT) astrazeneca (DOT) com> wrote

Quote:
Hopefully a simple question.

I have calculated measure whit the following formula.
Prijs * Volume (= Sales)
My problem is that by all dimensions he doing
sum Prijs * sum Volume

Where I like to have
Sum (Prijs * Volume)

Regards,

Christiaan



Reply With Quote
  #2  
Old   
Nigel Pendse
 
Posts: n/a

Default Re: Multiply Prijs * Volume - 08-25-2003 , 11:12 AM






"Christiaan" <christiaan.vanapeldoorn (AT) astrazeneca (DOT) com> wrote

Quote:
Hopefully a simple question.

I have calculated measure whit the following formula.
Prijs * Volume (= Sales)
My problem is that by all dimensions he doing
sum Prijs * sum Volume

Where I like to have
Sum (Prijs * Volume)
It's very easy -- do the calculation during the data load into the cube. You
can do in-line SQL calculations to create additional data members which are
calculated as the cube is built and the calculations are then stored as data
in the cube. They are then consolidated in the usual way and there's no hit
on the query performance.




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.