Symptom
- You want to calculate Internal Rate of Return in a report for each group separately
Environment
- SAP Crystal Reports 2013
Resolution
- Create a report with at least 2 fields (values and dates) and 2 groups
- Set sorting by dates in ascending order (See KBA 2294933 for more information)
- Now you'll need to create 3 formulas
- Collect the records into 2 arrays (Values and Dates)
- Do the calculation with the function
- Reset the Arrays on group change (otherwise the values won't be correct in the later groups)
- Place the 3 formulas to the correct sections, as below:
Keywords
KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To
Product
SAP Crystal Reports 2013