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!

[TABLE="width: 547"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Job Level[/TD]
[TD]Salary[/TD]
[TD]Earlier Job Level Salary[/TD]
[TD]Difference $[/TD]
[TD]Difference %[/TD]
[/TR]
[TR]
[TD]Admin/Coordinator[/TD]
[TD="align: right"]$32,325[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Associate[/TD]
[TD="align: right"]$58,156[/TD]
[TD="align: right"]$32,325[/TD]
[TD="align: right"]$25,831[/TD]
[TD="align: right"]80%[/TD]
[/TR]
[TR]
[TD]Senior Associate[/TD]
[TD="align: right"]$69,437[/TD]
[TD="align: right"]$58,156[/TD]
[TD="align: right"]$11,281[/TD]
[TD="align: right"]19%[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD="align: right"]$100,687[/TD]
[TD="align: right"]$69,437[/TD]
[TD="align: right"]$31,249[/TD]
[TD="align: right"]45%[/TD]
[/TR]
[TR]
[TD]Senior Manager[/TD]
[TD="align: right"]$143,626[/TD]
[TD="align: right"]$100,687[/TD]
[TD="align: right"]$42,939[/TD]
[TD="align: right"]43%[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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