IRR  chart function
IRR() returns the aggregated internal rate of return for a series of cash flows represented by the numbers in the expression given by value iterated over the chart dimensions.
These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received for an investment consisting of payments (negative values) and income (positive values) that occur at regular periods. The function needs at least one positive and one negative value to calculate.
Syntax:
IRR([TOTAL [<fld {,fld}>]] value)
Return data type: numeric
Arguments:
Argument  Description 

value  The expression or field containing the data to be measured. 
TOTAL 
If the word TOTAL occurs before the function arguments, the calculation is made over all possible values given the current selections, and not just those that pertain to the current dimensional value, that is, it disregards the chart dimensions. By using TOTAL [<fld {.fld}>], where the TOTAL qualifier is followed by a list of one or more field names as a subset of the chart dimension variables, you create a subset of the total possible values. 
Limitations:
The expression must not contain aggregation functions, unless these inner aggregations contain the TOTAL qualifier. For more advanced nested aggregations, use the advanced aggregation function Aggr, in combination with calculated dimensions.
Text values,
Examples and results:
Example  Result 


0.1634 The payments are assumed to be periodic in nature, for example monthly. Note: The Date field is used in the XIRR example where payments can be nonperiodical as long as you provide the dates on which payments were made.

Data used in examples:
Cashflow:
LOAD 2013 as Year, * inline [
DateDiscountPayments
201301010.110000
201303010.13000
201310300.14200
201402010.26800
] (delimiter is '');