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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.