dbTalk Databases Forums  

Re: XIRR from MDX?

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


Discuss Re: XIRR from MDX? in the microsoft.public.sqlserver.olap forum.



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

Default Re: XIRR from MDX? - 07-13-2003 , 11:19 PM






Partially solved... With some help from Microsoft I realized what was
a basic misunderstanding.

You can not use "USE LIBRARY" in the same script as your MDX query.
You have to execute it by itself first then execute the query that
references the external library. I was trying to do both in the same
batch.

We are still working on creating a VB.NET COM Interop object that can
be registered with Analysis Services.

Greg


gregcarder (AT) hotmail (DOT) com (Greg) wrote in message news:<d61bada1.0307081227.3471783d (AT) posting (DOT) google.com>...
Quote:
Hello all,

I'm trying to use the XIRR function in Excel from MDX. I have
installed Analysis Toolpack for Excel that contains XIRR so that is
not a problem.

My first hope was that XIRR would simply be available from MDX because
the Excel functions are included automatically without using USE
LIBRARY.

This does not appear to be the case. I've read on other posts some
sample code to run XIRR from VBA. Using something like:

Set objExcel = New Excel.application
objExcel.RegisterXLL "C:\Program Files\Microsoft
Office\Office\LIBRARY\ANALYSIS\ANALYS32.XLL"

Our development environment is .NET 2003 using VB.NET. I tried
creating a custom DLL using the COM Interop project template so that I
could make the XIRR call from within code I control. I have not been
able to use this DLL from within the MDX Sample application. Whenever
I include "USE LIBRARY" I get an error about "expecting end of
statement but found extra text, near: WITH". This happens for my DLL
or any other DLL that I try to include.

1) Is it possible to use USE LIBRARY from within the MDX sample
application?
USE LIBRARY "c:\abc.dll"

WITH

MEMBER ...

Select....

2) Are there any good samples of using XIRR from Excel?

3) Has anyone successfully used .NET 2003 to create a DLL accessible
from MDX?

Any thought/help would be appreciated!

Thanks,

Greg

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.