dbTalk Databases Forums  

MDX and Logarithm

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


Discuss MDX and Logarithm in the microsoft.public.sqlserver.olap forum.



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

Default MDX and Logarithm - 09-07-2005 , 11:49 AM






I am using Analysis Services 2005 and I need to create a new measure “Sigma”,
for which I have to take the logarithm of another calculated measure.

i.e. Sigma = ln (x) (where x is another calculated measure within the cube.

I searched the web and was not able to find any info about this topic.

Does anyone know how to do this?

Thanks


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

Default Re: MDX and Logarithm - 09-07-2005 , 10:23 PM






Well, the VBA natural logarithm function: Log(x) works in AS 2000; and
Exp(x) still seems to work in AS 2005 (June CTP). But using Log(x) in AS
2005 returns an error like "Syntax of Log() is incorrect" - so it seems
to recognize the "Log" keyword, but doesn't execute it.

Maybe this is a bug in the June CTP - have you posted this question to
the SQL Server 2005 Beta Newsgroups?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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

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

Default Re: MDX and Logarithm - 09-08-2005 , 09:41 AM



Thanks a lot

will post his question on SQL Server 2005 news group.

Bruno

"Deepak Puri" wrote:

Quote:
Well, the VBA natural logarithm function: Log(x) works in AS 2000; and
Exp(x) still seems to work in AS 2005 (June CTP). But using Log(x) in AS
2005 returns an error like "Syntax of Log() is incorrect" - so it seems
to recognize the "Log" keyword, but doesn't execute it.

Maybe this is a bug in the June CTP - have you posted this question to
the SQL Server 2005 Beta Newsgroups?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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


Reply With Quote
  #4  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: MDX and Logarithm - 09-08-2005 , 11:41 AM



Log is a keyword because of data mining syntax in AS2005, so you need to
escape it by using [Log] in MDX expressions.

--
==============================*=================== =
Mosha Pasumansky - http://www.mosha.com/msolap
Analysis Services blog at http://www.sqljunkies.com/WebL*og/mosha
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==============================*=================== =
"Bruno" <Bruno (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks a lot

will post his question on SQL Server 2005 news group.

Bruno

"Deepak Puri" wrote:

Well, the VBA natural logarithm function: Log(x) works in AS 2000; and
Exp(x) still seems to work in AS 2005 (June CTP). But using Log(x) in AS
2005 returns an error like "Syntax of Log() is incorrect" - so it seems
to recognize the "Log" keyword, but doesn't execute it.

Maybe this is a bug in the June CTP - have you posted this question to
the SQL Server 2005 Beta Newsgroups?


- 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.