Forum Discussion
st-mb
8 years agoFrequent Visitor
Tracking role changes (LOOKUPVALUE?)
Hello, I'm trying to create a report that tracks employees' tasks they've completed and the role they completed it as. For example, all employees have a role at the beginning of this year, bu...
- 8 years ago
Hi,
Write this calculated column formula
=LOOKUPVALUE(Employees[Role],Employees[UserID],[UserID],Employees[Date],CALCULATE(MAX(Employees[Date]),FILTER(Employees,Employees[UserID]=EARLIER([UserID])&&Employees[Date]<=EARLIER(Tasks[Date]))))
Hope this helps.
Ashish_Mathur
8 years agoSuper User
Hi,
Write this calculated column formula
=LOOKUPVALUE(Employees[Role],Employees[UserID],[UserID],Employees[Date],CALCULATE(MAX(Employees[Date]),FILTER(Employees,Employees[UserID]=EARLIER([UserID])&&Employees[Date]<=EARLIER(Tasks[Date]))))
Hope this helps.
st-mb
8 years agoFrequent Visitor
Thank you both! I used Ashish_Mathur's suggested formula and it worked perfectly.