Forum Discussion

Giovanni's avatar
Giovanni
Regular Visitor
7 years ago
Solved

IRR progressivo

buongiorno

Avrei necessita di inserire delle formule su power bi che non riesco a fare autonomamente

 

In particolare, vorrei importare una tabella simile alla seguente

 

Date

Cash Flow

23/03/2016

-10.000,00

23/03/2016

55,00

30/04/2016

82,50

30/07/2016

123,75

13/10/2016

185,63

31/12/2016

278,44

15/04/2017

417,66

15/07/2017

626,48

15/10/2017

939,73

15/01/2018

1.409,59

15/04/2018

2.114,38

15/07/2018

1.691,51

15/10/2018

1.353,21

15/01/2019

1.082,57

15/04/2019

866,05

15/07/2019

692,84

15/10/2019

554,27

15/01/2020

443,42

 

Poi vorrei che power bi mi calcolasse:

 

  • Il cash flow cumulato è questo sono riuscito a calcolarlo con la seguente formula Cumulato = CALCULATE(SUM(Tabella1[Cash Flow]);FILTER(ALLSELECTED(Tabella1[Date]);Tabella1[Date]<=MAX(Tabella1[Date])))
  • l’IRR dell’investimento complessivo   è questo sono riuscito a calcolarlo con la seguente formula IRR = XIRR(Tabella1;Tabella1[Cash Flow];Tabella1[Date])
  • l’IRR progressivo è questo non sono riuscito a calcolarlo per come fatto nell’excel in allegato

 

Il risultato finale a cui vorrei giungere è il seguente

 

Date

Cash Flow

Cash flow Cumulato

IRR

23/03/2016

-10.000,00

-10.000,00

-100,0%

23/03/2016

55,00

-9.945,00

-100,0%

30/04/2016

82,50

-9.862,50

-100,0%

30/07/2016

123,75

-9.738,75

-100,0%

13/10/2016

185,63

-9.553,13

-99,9%

31/12/2016

278,44

-9.274,69

-98,5%

15/04/2017

417,66

-8.857,03

-92,6%

15/07/2017

626,48

-8.230,55

-81,3%

15/10/2017

939,73

-7.290,82

-65,3%

15/01/2018

1.409,59

-5.881,23

-46,0%

15/04/2018

2.114,38

-3.766,85

-25,0%

15/07/2018

1.691,51

-2.075,34

-12,3%

15/10/2018

1.353,21

-722,13

-3,9%

15/01/2019

1.082,57

360,43

1,8%

15/04/2019

866,05

1.226,49

5,8%

15/07/2019

692,84

1.919,33

8,7%

15/10/2019

554,27

2.473,60

10,7%

15/01/2020

443,42

2.917,02

12,3%

 

grazie

 

Ciao

 

 

  • Giovanni ,

     

    You may try the DAX below.

    IRR =
    IFERROR (
        XIRR (
            FILTER ( ALLSELECTED ( Tabella1 ), Tabella1[Date] <= MAX ( Tabella1[Date] ) ),
            Tabella1[Cash Flow],
            Tabella1[Date]
        ),
        -1
    )
    

1 Reply

  • v-chuncz-msft's avatar
    v-chuncz-msft
    Community Support

    Giovanni ,

     

    You may try the DAX below.

    IRR =
    IFERROR (
        XIRR (
            FILTER ( ALLSELECTED ( Tabella1 ), Tabella1[Date] <= MAX ( Tabella1[Date] ) ),
            Tabella1[Cash Flow],
            Tabella1[Date]
        ),
        -1
    )