Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Giovanni
Regular Visitor

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

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
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
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
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
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors