Hi All,
I have a requirement to display the empl class for each candidate based on latest start date. For Example :
CandidateID StartDate EmplClass
1111 3/15/2012 Contractor
1111 6/3/2013 Lcl Empl
Expected Result:
CandidateID StartDate EmplClass
1111 6/3/2013 Lcl Empl
To achieve the above expected result, Firstly, I created a new variable to capture latest start date as follows:
Max Start Date (Measure) = Max([Start Date]) ForEach([Candidate ID])
Then Retrieving the empl class based on latest start date -
Employee Class (Measure) = If( [Start Date] = [Max Start Date]) Then [Employee Class]
Current Result:
Candidate ID Max Start Date EmplClass
1111 6/3/2013 #MULTIVALUE
This gives me Multivalue error. How to overcome this issue to achieve the expected output. Quick response & suggestions/help would be greatly appreciated. Thank you!