Transforming and summarizing salary data with Power Query in Excel

Status
Not open for further replies.

Ozzyy

New Member
Joined
May 1, 2021
Messages
6
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hello! I have an Excel table with a row showing each time an employee has received a salary increase. Using Power Query, I'd like to summarize this information to show me one record per employee, with a column showing their salary as at the end of each year (going back to 2015 or whenever they joined the company). I'm new to Power Query and struggling to get started on this one. Any advice or guidance would be greatly appreciated.

Here's what I'm working with:

Source Table
EMPLOYEE IDSALARYSALARY START DATE
10156,0005/07/18
10157,0001/01/19
10168,0001/01/21
37865,0007/04/19
37873,0001/01/20
37881,0001/01/21
37883,0002/01/21
63865,0006/10/19
63870,0001/01/20
63876,0001/01/21
75168,0001/04/21
87085,0007/01/18
87095,0001/01/19
870101,0001/01/21


Desired Output in Power Query
EMPLOYEE ID2018 SALARY2019 SALARY2020 SALARY2021 SALARY
10156,00057,00068,00068,000
378-65,00073,00083,000
638-65,00070,00076,000
751---68,000
87085,00095,00095,000101,000


Thank you!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Status
Not open for further replies.

Forum statistics

Threads
1,215,833
Messages
6,127,161
Members
449,367
Latest member
w88mp

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