Forum Discussion

giordani2000's avatar
giordani2000
Icon for Helper I rankHelper I
3 years ago
Solved

xIRR calculation discrepancy

Hi team,

I am trying to calculate XIRR for a given set of investments and cashflows (column Total CF), which comply with all rules of XIRR function, but I still get a discrepancy between calculating XIRR using XIRR formula vs a new measure via DAX (this method allows me to slice and dice the data among diferent attributes and categories).

 

Please see my data and calculation attached.

 

When loaded into excel the XIRR formula the value for SYM returned -69.9%, but the new IRR measure yields -100% (incorrect). For Aqsys, the XIRR formula and IRR measure returned the same value.

 

What am I doing wrong?

 

Thanks in advance for your help.

Note: not sure how to attached the excel file but I am open to it.

 

Measure Formula: 

=CALCULATE(iferror(xirr(TestCF,TestCF[Total CF],TestCF[Date],-0.01),-1),filter( ALL(TestCF),

CONTAINS(

VALUES(TestSum_2),TestSum_2[Portfolio Company],TestCF[Company])

)

)

 

XIRR formula: XIRR(Cashflow!E2:E7,Cashflow!B2:B7,0)

 

CompanyDateCFActivityFMVTotal CF

Sym3/19/2013-2125000 -2125000
Sym10/10/2014-500000 -500000
Sym12/10/2014-500000 -500000
Sym12/2/2015362591 362591
Sym12/8/20156 6
Sym12/2/2019 00
AqSys6/4/2010-2142857 -2142857
AqSys2/17/2011-3085714 -3085714
AqSys4/27/2012-1707314 -1707314
AqSys1/15/2014-2489833 -2489833
AqSys1/15/2014-235001 -235001
AqSys10/27/201525911452 25911452
AqSys12/2/20169559646 9559646
AqSys4/21/20172765590 2765590
AqSys5/22/20172370391 2370391
AqSys11/5/20190 0
AqSys12/2/2019 00

 

Photos:

cashflows

 

Other attributes

 

Output

 

 

14 Replies