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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
new808user
Frequent Visitor

how to use what if new parameter and subtract from previous cell

Hi Power BI Community, 

 

I am a new Power BI user and currently trying to recreate some work I did in excel to Power BI. I have provided a screenshot of excel below this. Cell F2 is where a user is able to input a  whole number. From there, in F3 cell, the equation is =F2+ Quantity, which becomes 149. Then the following cell will use the cell above and subtract from quantity of the same row line.

net change = F2 + Quantity (F3)

net change = F3+ Quantity (F4)

 

Screen Shot 2022-05-14 at 2.22.19 PM.pngScreen Shot 2022-05-14 at 2.23.00 PM.png

Currently in my Power BI. It looks like the following. I am not sure how to do the same method that I did in excel for power BI. Therefore, I used what-if parameter to create a slicer that allows user to input for Quantity simulation. ( This is more ideal for me since it will be easier to create slicer box and let people input values.) Now the equation in quantity simulation is = input field - quantity. This equation only subtracts input field from each quantity. However, I want to be able to subtract it from the previous cell-like how I did in excel. 
Screen Shot 2022-05-14 at 2.07.38 PM.png

 

If anyone can help me or point me in the right direction. I will greatly appreciate it! 

 

Thank you!

S

1 ACCEPTED SOLUTION

You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @new808user ,

 

How is your Data setup? In this case you need to use a cummulative sum. Can you please share a sample of your data?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix

 

Thank you for replying to the thread! I am really new to this forum and I am not sure how to upload sample data. Can you let me know how I upload sample data here? 

 

Thank you! MFelix!

You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors
Top Kudoed Authors