I’m a newbie in Excel Power queries (M) and would appreciate some assistance. I have a table with the structure below. I would like to populate a column called “Daily Wage”, which is = “3 month Salary” divided by 90 (days in 3 months). The difficulty is that:
-
on Fridays, given the weekend, the ‘Daily Wage’ will cover 3 days, so it will be 3x the other work days
-
Secondly, the “3M Salary” is missing in certain rows. In that case, we can proxy it with the person’s previous 3 month salary (look for prior rows for that person until the 3m salary is found)
Example Table:
Date | Name | 3 Month Salary | Daily Wage |
---|---|---|---|
2 Jan 2024 | John | 10,000 | ? |
3 Jan 2024 | John | ? | |
4 Jan 2024 | John | ? |
Thank you!
Struggled when the 3 Month Salary is missing