Difference in Salary from Previous Job Level

stbrooks13

New Member
Joined
Dec 9, 2014
Messages
40
I have these job levels (in order) with their corresponding average salaries, earlier job level salaries, difference in $ and % between the two. This is a manual table, and I need a DAX formula to calculate the earlier job level salary so that I can calculate the differences, but I can't for the life of me figure out the formula. Please help!

Job LevelSalaryEarlier Job Level SalaryDifference $Difference %
Admin/Coordinator$32,325
Associate$58,156$32,325$25,83180%
Senior Associate$69,437$58,156$11,28119%
Manager$100,687$69,437$31,24945%
Senior Manager$143,626$100,687$42,93943%

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Look at the file in Excel:

Code:
[URL]https://www.dropbox.com/s/0s7ibofb9j61x0v/Difference%20in%20Salary%20from%20Previous%20Job%20Level.xlsx?dl=0[/URL]
 
Upvote 0
Dowload file and open PowerPivot for Excel
Formulas are:

Code:
Earlier_JLS=CALCULATE(VALUE(MAX(Table1[Salary])),FILTER(Table1,Table1[Index]=EARLIER(Table1[Index])-1))
Difference $=IF(Table1[Salary]=Table1[Salary]-Table1[Earlier_JLS],0,Table1[Salary]-Table1[Earlier_JLS])
Difference %=IF(Table1[Difference $]=0,0,Table1[Salary]/Table1[Earlier_JLS]-1)
 
Upvote 0
Dowload file and open PowerPivot for Excel
Formulas are:

Code:
Earlier_JLS=CALCULATE(VALUE(MAX(Table1[Salary])),FILTER(Table1,Table1[Index]=EARLIER(Table1[Index])-1))
Difference $=IF(Table1[Salary]=Table1[Salary]-Table1[Earlier_JLS],0,Table1[Salary]-Table1[Earlier_JLS])
Difference %=IF(Table1[Difference $]=0,0,Table1[Salary]/Table1[Earlier_JLS]-1)

This is perfect, thank you! I was looking for a measure instead of a calculate column. But it works perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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