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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
rifaymars
Helper I
Helper I

Make a table from variables + exponent formula in PBI

Hello,

 

I have one calculator in Excel, I want to transfer it to PowerBI. I want to make new table with 2 columns: QTY and Revenue(exponent) with list from 1 to 20000, but i want the user to be able to change the 20000 number. I also want the user to be able to change Min, Max and the coefficient for exponent.

So, I want to make one table with 2 columns, variable rows and variables in formulas, which USER can change directly in report(not in PowerQuery Editor). Here are 2 pictures of my calculator and how I have made it in Excel:

A3 = IF(A2="";"";IF((A2-1)<=0;"";(A2-1)))

B3 = IF(A3="";"";($D$2+($D$3-$D$2)*(1-(A3-1)/$D$4)^$D$1))

 

rifaymars_0-1703159406962.pngrifaymars_1-1703159415938.png

 

1 REPLY 1
lbendlin
Super User
Super User

In Power BI this is called "What-If parameters".  Note that your range can only have up to 1000 values, so if you want to specify from 1 to 20000 it would have to be in increments of 20.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!