dbTalk Databases Forums  

VBA RoundUp doesn't work but Round does

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


Discuss VBA RoundUp doesn't work but Round does in the microsoft.public.sqlserver.olap forum.



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

Default VBA RoundUp doesn't work but Round does - 04-24-2005 , 02:47 PM






hi,
According to BOL, AS supports functions "Round" and "RoundUp".
\WITH MEMBER [Measures].[TEST] AS ' RoundUp ( ([Measures].[Store Sales] /
[Measures].[Sales Count] ), 0 ) '
Select {[Measures].[TEST]} on 0,
Descendants ( [Gender].[All Gender] ) on 1
From Sales

SQL Server 2000 sp3a, AS sp3a, office 2003

Any help is very appreciated.



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

Default Re: VBA RoundUp doesn't work but Round does - 04-25-2005 , 10:18 PM






hi,
Still not figure it out.
I refer to someone's post on April 1 Can't Use Excel 2003 Functions In MDX"
use library "c:\program files\microsoft office\office11\excel.exe" first
and it works , but only works on session.
When I reconnect to AS , it don't work again.

Why?


..
Quote:
hi,
According to BOL, AS supports functions "Round" and "RoundUp".
\WITH MEMBER [Measures].[TEST] AS ' RoundUp ( ([Measures].[Store Sales] /
[Measures].[Sales Count] ), 0 ) '
Select {[Measures].[TEST]} on 0,
Descendants ( [Gender].[All Gender] ) on 1
From Sales

SQL Server 2000 sp3a, AS sp3a, office 2003

Any help is very appreciated.





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.