Calculating the difference between a value and the max value

jaguinaga

New Member
Joined
Aug 10, 2021
Messages
21
Office Version
  1. 365
Platform
  1. Windows
I am trying to take the difference in price between any of the prices versus the maximum value. I also want the max value to become the next highest value if I were to filter of the current max value. Any recommendations on how to accomplish this? Guessing I need a measure but I am not sure how to create something to accomplish all this. Thanks in advance!

Ex: Current different in price between the bus and the car is two. However if I filtered off the car, house would become the next highest value shifting the difference in price to 1 between the bus and the house.



1647013566293.png
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Change your (MAX($B$2:$B$20)) to (SUBTOTAL(104,$B$2:$B$2000))

As you type out the SUBTOTAL function in your formula, you will see that a list will appear giving you different options of SUM, MIN,MAX, etc...and they are listed twice, these are the Function Numbers. 1 or 2 digit Function Numbers will result in full data set. 3 digit Function Numbers will only give results from visible data...including those that are filtered out.
 
Upvote 0
I am trying to take the difference in price between any of the prices versus the maximum value. I also want the max value to become the next highest value if I were to filter of the current max value. Any recommendations on how to accomplish this? Guessing I need a measure but I am not sure how to create something to accomplish all this. Thanks in advance!

Ex: Current different in price between the bus and the car is two. However if I filtered off the car, house would become the next highest value shifting the difference in price to 1 between the bus and the house.



View attachment 59828
I am trying to build this concept in power bi, Sorry for the confusion
 
Upvote 0

Forum statistics

Threads
1,223,671
Messages
6,173,735
Members
452,532
Latest member
cnetctg

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top