![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi all, I'm sure I'm missing something simple. My problem is described below... I have 2 dimensions in my cube. Time dimension with hierarchy of year -> qtr -> day. Entity dimension that contains real estate properties. The fact table contains the days that transactions occurred for each property and the amount of each transaction. I need to perform an XIRR calculation and I'm trying to pass an array of the transactions that occurred during a given quarter for a given entity to an external function that ends up calling the XIRR function from the Excel addin toolkit. I need to get an array containing the dates of any transactions that happened and an array containing the values for each of the transactions. For the example below I'm just trying to get the array of dates. My MDX is below: --------------- WITH MEMBER [Measures].[IRRResult] AS ' CustomXIRR(SetToStr({([Entity].CurrentMember, [PeriodDownToDay].CurrentMember, [Measures].[Tw Date])}))' SELECT NON EMPTY {[Measures].[IRRResult] } ON COLUMNS, NON EMPTY {[Entity].[All Entity].[i].Children} on rows FROM [ContribDistrib] WHERE ([PeriodDownToDay].[All PeriodDownToDay].[1997].[Quarter 1]) --------------- When I debug into my external function in .NET I see something like the following: {([Entity].[All Entity].[i].[1 - 123 Anywhere Lane(I)], [PeriodDownToDay].[All PeriodDownToDay].[1997].[Quarter 1], [Measures].[Tw Date])} What I wanted was an actual set of the days from the fact table for the current entity/quarter. Any hints on what I should try instead? Thanks, Greg |
![]() |
| Thread Tools | |
| Display Modes | |
| |