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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

what if parameter to perform scenario analysis

Hi,


Can you please help me with the following table? I need to calculate present value =Value/(1 + growth rate)^Period. Growth rate is a parameter to allow scenario analysis.

NPV2.PNG

 
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description ,you can follow these steps :

1.New a parameter what-if as below:

 

Please refer to this article for more details :

Create and use a What if parameter to visualize variables in Power BI Desktop

001.png

 

2.create measures as below:

Prevent value = 
var rate = 1+Parameter[Parameter Value]
var  Present_rate = rate^MAX('Table'[Period])
return sum('Table'[Value])/Present_rate

002.png

 

Here is a sample I made:

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EXA7D1JfmqpBjllTHBL18dQB3Q-6S4o4x1krcWkrZu0dzw?e=Qn0V5a

 

Best Regards,
Community Support Team _ Eason
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

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description ,you can follow these steps :

1.New a parameter what-if as below:

 

Please refer to this article for more details :

Create and use a What if parameter to visualize variables in Power BI Desktop

001.png

 

2.create measures as below:

Prevent value = 
var rate = 1+Parameter[Parameter Value]
var  Present_rate = rate^MAX('Table'[Period])
return sum('Table'[Value])/Present_rate

002.png

 

Here is a sample I made:

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EXA7D1JfmqpBjllTHBL18dQB3Q-6S4o4x1krcWkrZu0dzw?e=Qn0V5a

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

value =divide(sum(Value)/(1 + power((growth rate),sum(Period)))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.