Forum Discussion

difrenkel's avatar
difrenkel
New Member
8 years ago
Solved

calculating NPV

I want to compute XNP for two projects, each with its own discount rate.

I have two tables:

 - tblCashFlows with clomns: date | project | values

 - bplRate with two column: project | rate

 

Formula should be

VPL = XNPV(tblCashFlows,tblCashFlows[Values],tblCashFlows[Date],XXXXX)

 

XXXXX should bring the discount value from tblRate.

 

What to write in XXXXX?

 

tblCashFlows

DateProjectValue
31-01-17Project1100
02-03-17Project1100
01-04-17Project1100
01-05-17Project1100
31-05-17Project1100
30-06-17Project1100
30-07-17Project1100
29-08-17Project1100
28-09-17Project1100
28-10-17Project2100
27-11-17Project2100
27-12-17Project2100
26-01-18Project2100
25-02-18Project2100
27-03-18Project2100
26-04-18Project2100
26-05-18Project2100
25-06-18Project2100
  • Hi difrenkel

     

    Try one of these to get the rate

     

    Calculate(values(tblRate[Rate]),Filter(tblRate,tblRate[Project]=SELECTEDVALUE(tblCashFlows[Project])))

     

    OR

     

    LOOKUPVALUE(tblRate[Rate],tblRate[Project],SELECTEDVALUE(tblCashFlows[Project]))

1 Reply

  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    Community Champion

    Hi difrenkel

     

    Try one of these to get the rate

     

    Calculate(values(tblRate[Rate]),Filter(tblRate,tblRate[Project]=SELECTEDVALUE(tblCashFlows[Project])))

     

    OR

     

    LOOKUPVALUE(tblRate[Rate],tblRate[Project],SELECTEDVALUE(tblCashFlows[Project]))