Forum Discussion
Anonymous
6 years agoNot applicable
Return value based on matching value & Date difference
Hello, Having an issue figuring out how to gather information from a seperate table comparing two different columns. Below are examples of tables. Case Table holds all cases with the date the cas...
- 6 years ago
Hi Anonymous
try this calculated column
Department = lookupvalue(DepartmentTable[Current Department];DepartmentTable[Employee Email];[Email];DepartmentTable[Job Date];calculate(max(DepartmentTable[Job Date]);filter(all(DepartmentTable);DepartmentTable[Employee Email]=[Email] && DepartmentTable[Job Date]<=[Date Created])))do not hesitate to give a kudo to useful posts and mark solutions as solution
az38
6 years agoCommunity Champion
Hi Anonymous
try this calculated column
Department = lookupvalue(DepartmentTable[Current Department];DepartmentTable[Employee Email];[Email];DepartmentTable[Job Date];calculate(max(DepartmentTable[Job Date]);filter(all(DepartmentTable);DepartmentTable[Employee Email]=[Email] && DepartmentTable[Job Date]<=[Date Created])))do not hesitate to give a kudo to useful posts and mark solutions as solution
- Anonymous6 years agoNot applicable
Hi az38
That worked perfect! Originally tried using Lookupvalue, but had no luck. Thank you!