cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
datacauts
Helper I
Helper I

IRR with dynamic measures

Pbix file: https://ufile.io/8lsvjz9t

 

Hi guys! Could you help me out with one Internal Rate of Return (IRR) question, please? The funcionality that I'm seeking is the following one: I have three assets on my financial data and, when I select their ticker, the box "IRR" should show the correspondent IRR value (in %) for the specific ticker selected. For the IRR function to work, I need to have Cash Flow values for the years to come. My problem comes mainly due to the facts that 1) each year of Future Cash Flow has a specific form of calculation (therefore I created mesures for each future year), and 2) certains elements involve webscraping updating, so both facts give me the problem that I have variables that are changeable and will continuously keep changing. Ideally, from my point of view, it could be solved if it would be possible to generate a table containing columns with 1) the different assets, 2) future dates (years) and 3) corresponding cash flows for each asset and year. Obs: inside the folder "_IRR", I left also an unsuccesful trial of doing the TIR calculations entirely on DAX ("IRR test", in case anyone knows how to solve it), but since it is quite difficult to isolate the IRR variable within the IRR conventional formula, Power BI wasn't able to understand the logic.

5 REPLIES 5
PijushRoy
Solution Sage
Solution Sage

Hi @datacauts 

Sorry for the delay. I 'am looking into your requirement & pbix file

Basically, if I could get a calculated table with "Financial Data[Asset]" on one column, then "Years" values (going from 2022 to 2028 / or an INDEX going from 1 to 7) for every asset: like this:

ASSET1 - 2022
ASSET1 - 2023
ASSET1 - 2024
...
ASSET1 - 2028
ASSET2 - 2022
...

 

Then I think I would just need to create a formula which says "for 2022 rows, assign the [CF 2022] for that Asset" and "for 2023 rows, assign the [CF 2023] for that Asset", and so on. After that I would have three columns: Asset, Year and Cash Flow by Year and then I think I could just use the XIRR formula perhaps. What do you think?

datacauts
Helper I
Helper I

Hey @PijushRoy can you help?

datacauts
Helper I
Helper I

Thanks for your disposition @PijushRoy 🙌
The sample data can be accessed in this link https://ufile.io/8lsvjz9t.

These would be the expected IRR results for each asset:
ABCP11 - IRR: 7,39%
AIEC11 - IRR: 9,60%
ALMI11 - IRR: 7,55%

 

For more information about the IRR calculation, I suggest you read:
https://corporatefinanceinstitute.com/resources/knowledge/finance/internal-rate-return-irr/

 

PijushRoy
Solution Sage
Solution Sage

Hi @datacauts 

Please share sample data and expected result data. If you ok, please share PBIX file

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors