manne wrote:I am using architect, I use the wizard to start and if needed do coding.
I am on version 10.1
I must admit I have never dabbled in the wizard so can't advise on how to do this using that.
However it should be quite simple, for your lookup cube there are 2 main ways you could build it:
- [1] Dims - Employee Number, Time, Measures (String) - Populate the employee role as string
[2] Dims - Employee Number, Employee Role, Time, Measures (numeric) - Populate as a 1 or 0
If you go with method 1 then the lookup is a simple CellGetS against the employee number - job done.
If you go with method 2 you will need to loop through the employee roles until you find the relevant one that has a non zero.
Depending on how many roles you have, this could be very quick and simple.
If you have a lot of roles however I would recommend using a second TI process (executed in the prolog of your upload) that uses the lookup cube as a zero suppressed data source and creates subsets for each employee number in the "Employee Role" dimension.
Then your data tab of the upload process can do a simple SubsetGetElementName to retrieve the employee role for any given employee.
In the epilog of you upload process do a while loop that goes through and deletes the subsets you created earlier.
HTH
Edit - I should point out that one employees subset may have multiple roles for the different months, so you could create a subset for each employee and month or just use 1 subset and the do a loop through that in the upload data tab. The loop would be quick as I doubt 1 person would have more than a couple of job titles over a year or 2.