I am wondering if someone could help with M wizardry with this problem?
My problem relates to understanding time taken between assessments made for employees based on the last assessment conducted. I have attached a mock up of two tables, employees and assessments.
I would like to know if it is possible (sure it is, but cannot figure it out!) to take the data and perform the check on each employee and their assessments for the time taken (not worried about the period, days, months or years) between each assessment such that I can check to see if the period between the assessment was less than 1 year. This is a maximum period we would allow between assessments, but there can be more than one assessment conducted within the period from the last one.
I have the employee table with ID, Name and Ref. Date (servers as a starting point) and assessment table showing the date upon an assessment was made.
OK trying to figure this out but assume its the CombineData row where this happens and where I have no idea on this. Think I understand what this is trying to do, for each employee find the Ref Date and then take each Ass. Date and add in to the mix until the next employee?
I think its not quite correct as the starting date (or Ref date from Employees Table) in the picture is picking 30-Sep-2015 which is for Employee1 and applying to every Employee in the assessment table as can be seen on rows 1 (correct), row 5, row 7 and row 10 which is not correct.