dbTalk Databases Forums  

a power function - like 2^3 in OLAP calculated measure?

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


Discuss a power function - like 2^3 in OLAP calculated measure? in the microsoft.public.sqlserver.olap forum.



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

Default a power function - like 2^3 in OLAP calculated measure? - 04-28-2005 , 06:08 PM






i need to get a calculated measure like 2^3 (=8). is there a function? thanks.

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: a power function - like 2^3 in OLAP calculated measure? - 04-28-2005 , 06:19 PM






Try this Foodmart MDX (based on my preceding post):

Quote:
WITH MEMBER Measures.X AS '2 ^ 3'
SELECT {X} on 0 FROM Sales
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
urgent
 
Posts: n/a

Default Re: a power function - like 2^3 in OLAP calculated measure? - 04-28-2005 , 06:30 PM



but how to simply write the formula in Calculated member in Cube editor?
thanks.
by the way, i don't have Foodmart installed, can you let me know how to
install it?

"Deepak Puri" wrote:

Quote:
Try this Foodmart MDX (based on my preceding post):


WITH MEMBER Measures.X AS '2 ^ 3'
SELECT {X} on 0 FROM Sales



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #4  
Old   
urgent
 
Posts: n/a

Default Re: a power function - like 2^3 in OLAP calculated measure? - 04-28-2005 , 06:34 PM



sorry, perhaps, you missunderstood me: i need to get:
Measures: amount
((Measures.amount.currentmember-measures.amount.currentmember.prevmember)
/measures.amount.currentmember.prevmember) ^12

"Deepak Puri" wrote:

Quote:
Try this Foodmart MDX (based on my preceding post):


WITH MEMBER Measures.X AS '2 ^ 3'
SELECT {X} on 0 FROM Sales



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #5  
Old   
Deepak Puri
 
Posts: n/a

Default Re: a power function - like 2^3 in OLAP calculated measure? - 04-28-2005 , 07:45 PM



Is this a recursive definition of [Measures].[amount] in terms of
itself, or another calculated measure? I you provide some sample data,
it will be easier.

Quote:
Measures: amount
((Measures.amount.currentmember-measures.amount.currentmember.prevmember
)
/measures.amount.currentmember.prevmember) ^12
Quote:
When installing SQL Server Analysis Services 2000, there should be an
option to install the Foodmart sample DB (I haven't done this in a
while, so don't know details).

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.