Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Retrieve data based on Max date in webi

$
0
0

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!


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>