Let me add to this:
I have built a formula to populate an array for both a date field and a currency field.
In Excel if you have 5 records from a1:b5 then XIRR looks like this:
XIRR(A1:A5, B1:B5)
Here is a version that works in Crystal that would require manual entry of new quarters numbers and dates-- and if you plug this into Crystal it works:
(XIRR([1000000,-100000,-100000,-100000,-100000,10277.49,-100000], [DateValue(1999,2,1),DateValue(1999,3,1),DateValue(1999,6,1), DateValue(1999,12,1),DateValue(2000,3,1),DateValue(2000,6,1),DateValue(2000,9,1)]))*.100
So you have a range for the currency and a range for the date fields. I need to simulate this in crystal. Crystal has an XIRR function, and with the arrays, I should be able to fill in the range, but am having difficulty getting it to work.
After building the arrays, I made another formula to combine the arrays in the XIRR formula.
Global currencyvar array Names;
Global datetimevar array dateapplied;
XIRR((Names),(dateapplied))
Checking this formula it comes back with no errors, but running the report brings back this error:
The 'values' of the XIRR formula must contain both negative and postive numbers. WHich is true - when you run an array, it should contain both the negatives and the positives, but that's the error that comes back.
Will continue to work on this.
Thanks so much!
satinsilhouette