Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello everyone,
For following situation how can I calculate year over year salary increase in percentage for each employee?
PLEASE HELP!
Thanks for any help!
Solved! Go to Solution.
Hi,
You may download my solution from here.
Hope this helps.
Hi,
You may download my solution from here.
Hope this helps.
Hi unable to access the link... can u share the solution. Have a similar problem to calculate yoy percentage increase in salary of employees
I do not have that file now. Share soen data, explain the question and show the expected result.
HI @puru
The following calculated column should be close. Just changed where I have 'Table3' with your own tablename, and make sure you format the column as a percentage.
Percentage Change = VAR LastYearSalary = CALCULATE( SUM('Table3'[Salary]), FILTER( 'Table3', 'Table3'[Employee] = EARLIER('Table3'[Employee]) && 'Table3'[Year] = EARLIER('Table3'[Year])-1) ) Var ThisYearSalary = 'Table3'[Salary] RETURN IF(NOT ISBLANK(LastYearSalary),DIVIDE( (ThisYearSalary- LastYearSalary) , ThisYearSalary))
A couple other small points: YoY is usually calculated as : LastYear - ThisYear / LastYear. And Divide function has a third parameter to return an alternate result in case of divide by zero scenario. So for last line you could do this :
RETURN DIVIDE( ThisYearSalary - LastYearSalary , LastYearSalary, 1 )
Or if you want to return BLANK(), just omit third parameter.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |