Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

Creating an Array

$
0
0

Hi All,

 


I was trying to build an array for an XIRR formula and was running into issues. I've never built an array and the formulae are challenging to understand if you're trying to learn! Basically, there are two items you need in an XIRR formula -- values and dates. My values are within a column on my report called {Main.Net Investor Contributions / Distributions}. This particular column can have hundreds of data points, although my formula for some reason is picking up the first value only. I think the only way to get crystal to see all of the other values is by building an array.

 

I've leveraged off of another old post and used the formula there, but it's still not seeing all of the other values. The formula is:

 

whileprintingrecords;
numbervar x:= x + 1;
datetimevar array d;
numbervar array n;

redim preserve d[x];
redim preserve n[x];

d[x]:= {Main.GL Date};
n[x]:= {Main.Net Investor Contributions / Distributions};

 

Does anyone see any issues with this? Or maybe there's a simpler way of creating the array formula?

 

Any help on this would be greatly appreciated!


Regards,

Brandon


Viewing all articles
Browse latest Browse all 4814

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>