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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ANAPER
New Member

Calculate Loan Probability based on user input (What-if parameters)

So I am trying to calculate loan profitability based on a user input of what the loan amount will be.

 

I have a table like the following:

 

Amount of  Months         Rate

  1                                    3.0

  3                                    2.5

  6                                    1.8

  9                                    1.2

 

I would like for the user to enter the loan amount ex: $100 then select the number of months of payments ex: 3 and then calculate the loan probitability by multiplying 100*2.5 and have that amount displayed in a graph.

 

Is this possible with what if parameters?

 

All help would be very much welcomed as I am new to Power BI

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ANAPER ,

 

Here I create a what if parameter from 0 to 1000 with increment = 1.

RicoZhou_0-1663642769143.png

For reference:

Use what-if parameters to visualize variables - Power BI | Microsoft Learn

Measure:

Loan Probability =
VAR _LoanAmount =
    SELECTEDVALUE ( 'Loan Amount'[Loan Amount] )
VAR _Rate =
    SELECTEDVALUE ( 'Table'[Rate] )
RETURN
    _LoanAmount * _Rate

Result is as below.

RicoZhou_1-1663642807603.png

 

Best Regards,
Rico Zhou

 

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
Anonymous
Not applicable

Hi @ANAPER ,

 

Here I create a what if parameter from 0 to 1000 with increment = 1.

RicoZhou_0-1663642769143.png

For reference:

Use what-if parameters to visualize variables - Power BI | Microsoft Learn

Measure:

Loan Probability =
VAR _LoanAmount =
    SELECTEDVALUE ( 'Loan Amount'[Loan Amount] )
VAR _Rate =
    SELECTEDVALUE ( 'Table'[Rate] )
RETURN
    _LoanAmount * _Rate

Result is as below.

RicoZhou_1-1663642807603.png

 

Best Regards,
Rico Zhou

 

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

@ANAPER , Amount you can get using what if .

[What if Amount] * maxx(allselected(RateTable) RateTable[Rate])

 

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

 

 

refer https://youtu.be/9VYqbj2h4zE

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.