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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
cottrera
Post Prodigy
Post Prodigy

DAX - XNPV (Help I have edited ad re-worded my original post to make it more understandable)

Morning

 

I am stuggling with an XNPV result as it is not computing what I would expect.

 

I have a table with property reference, address, income, discount rate and period (Over 30 years) The example tabe below has a two discount rates that changes change over time it starts at 0.0371 and changes to 0.027

 

When I run the calcualtions in excel by using to the power of 

^

 

The result is different to XNPV in power bi.

Property RefAddressSum ^ 😀 (Power of excel)XNPV power Bi 😣 
26100 DAX STREET145,781210,600
1850 CALCULATE ROAD132,823191,880

 

It looks like when I use XNPV its just multiplying the Income by the number of periods

for exmple Address 100 Dax Street has an income of 7020 x by 3o years = 210,600

which is the result XNPV is giving me.

 

Here is the function I am using

Income NPV =
XNPV('XNPV Community',
'XNPV Community'[Income],
'XNPV Community'[Period],
SELECTEDVALUE('XNPV Community'[Discount Rate]))

 

Property RefAddressIncomePeriodDiscount Rate
26100 DAX STREET7,02001/01/20210.037
26100 DAX STREET7,02001/01/20220.037
26100 DAX STREET7,02001/01/20230.037
26100 DAX STREET7,02001/01/20240.037
26100 DAX STREET7,02001/01/20250.027
26100 DAX STREET7,02001/01/20260.027
26100 DAX STREET7,02001/01/20270.027
26100 DAX STREET7,02001/01/20280.027
26100 DAX STREET7,02001/01/20290.027
26100 DAX STREET7,02001/01/20300.027
26100 DAX STREET7,02001/01/20310.027
26100 DAX STREET7,02001/01/20320.027
26100 DAX STREET7,02001/01/20330.027
26100 DAX STREET7,02001/01/20340.027
26100 DAX STREET7,02001/01/20350.027
26100 DAX STREET7,02001/01/20360.027
26100 DAX STREET7,02001/01/20370.027
26100 DAX STREET7,02001/01/20380.027
26100 DAX STREET7,02001/01/20390.027
26100 DAX STREET7,02001/01/20400.027
26100 DAX STREET7,02001/01/20410.027
26100 DAX STREET7,02001/01/20420.027
26100 DAX STREET7,02001/01/20430.027
26100 DAX STREET7,02001/01/20440.027
26100 DAX STREET7,02001/01/20450.027
26100 DAX STREET7,02001/01/20460.027
26100 DAX STREET7,02001/01/20470.027
26100 DAX STREET7,02001/01/20480.027
26100 DAX STREET7,02001/01/20490.027
26100 DAX STREET7,02001/01/20500.027
1850 CALCULATE ROAD6,39601/01/20210.037
1850 CALCULATE ROAD6,39601/01/20220.037
1850 CALCULATE ROAD6,39601/01/20230.037
1850 CALCULATE ROAD6,39601/01/20240.037
1850 CALCULATE ROAD6,39601/01/20250.027
1850 CALCULATE ROAD6,39601/01/20260.027
1850 CALCULATE ROAD6,39601/01/20270.027
1850 CALCULATE ROAD6,39601/01/20280.027
1850 CALCULATE ROAD6,39601/01/20290.027
1850 CALCULATE ROAD6,39601/01/20300.027
1850 CALCULATE ROAD6,39601/01/20310.027
1850 CALCULATE ROAD6,39601/01/20320.027
1850 CALCULATE ROAD6,39601/01/20330.027
1850 CALCULATE ROAD6,39601/01/20340.027
1850 CALCULATE ROAD6,39601/01/20350.027
1850 CALCULATE ROAD6,39601/01/20360.027
1850 CALCULATE ROAD6,39601/01/20370.027
1850 CALCULATE ROAD6,39601/01/20380.027
1850 CALCULATE ROAD6,39601/01/20390.027
1850 CALCULATE ROAD6,39601/01/20400.027
1850 CALCULATE ROAD6,39601/01/20410.027
1850 CALCULATE ROAD6,39601/01/20420.027
1850 CALCULATE ROAD6,39601/01/20430.027
1850 CALCULATE ROAD6,39601/01/20440.027
1850 CALCULATE ROAD6,39601/01/20450.027
1850 CALCULATE ROAD6,39601/01/20460.027
1850 CALCULATE ROAD6,39601/01/20470.027
1850 CALCULATE ROAD6,39601/01/20480.027
1850 CALCULATE ROAD6,39601/01/20490.027
1850 CALCULATE ROAD6,39601/01/20500.027

 

Thank you

RIchard

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @cottrera ,

 (Year 1 - 5 discount rate = 0.0371,  Year 6 - 30 discount rate = 0.027)  But I see the data,when 2025 year ,the data is 0.027,could you pls share your excel.Remember to remove confidential data.

 

Best Regards

Lucien

Hi Lucien

Im so sorry about the delay repsonding. i did not recieve notification.

This sound stupid but I cannot see where I can attach the excel file to this thread

 

can you please advise

Richard

cottrera
Post Prodigy
Post Prodigy

Sorry I forgot to say that I am using the following DAX function  

 

Income NPV =
XNPV('XNPV Community',
'XNPV Community'[Income],
'XNPV Community'[Period],
SELECTEDVALUE('XNPV Community'[Discount Rate]))
 
 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.