Forum Discussion
Calculating NPV between two Tables
The first table looks like this:
ID Year Value
A 2019 $100
A 2020 $100
A 2021 $100
The second Table looks like this:
ID Discount Rate
A .08
B .09
C .07
Need to build this out in Power Bi opposed to Excel. Appreciate any/all help!
2 Replies
- v-yuta-msftCommunity Support
Anonymous,
Could you please share the logic and expected results?
Regards,
Jimmy Tao
- AnonymousNot applicable
Hey, thanks for getting back to me!
So here were the two tables again:
ID Year Value
A 2019 $100
A 2020 $100
A 2021 $100
The second Table looks like this:
ID Discount Rate
A .08
B .09
C .07
What I want to happen is for the discount rates to match up with the IDs (So like this):
ID Year Value Discount Rate
A 2019 $100 .08
A 2020 $100 .08
A 2021 $100 .08
B 2019 $200 .09
B 2020 $200 .09
C...
Etc...
Now the result I'm looking for is the NPV for each individual ID
ID NPV
A X (whatever this value would be)
B X (whatever value)
C X (whatever value)
Obviously this would be pretty simple to set up and build out in excel but my goal is to build out all of the logic in Power Bi, Hope this clarifies, and again, thank you so much in advance for the help!
Best,
Benji