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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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)))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors