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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.