Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Employee Movement Cube

Employee Movement Cube

Employee Movement Cube


I've got a challenge at work to implement a cube, showing the movement of employees.
The movement is defined like this:
If someone changes from one line manager to the other, the old line manager has one leaver and the new line manager has one starter.

This doesn't sound spectacular, but here's the problem.

We've got the standard parent-child employee hierarchy dimension and when you drilldown to the level of the old line manager the cube should show the measure leaver = 1.

However, when you drill up in the hierarchy and reach a point, where the old line manager and the new line manager are both subordinates of yet another line manager, he should see starter = 0 and leaver = 0.

The fact data might look like this:
NewLineManager    OldLineManager    Employee    ChangeDate
A                            B                        Z                01.01.2008

The new simplified LineManagerHierarchy parent-child data look like this:

Parent        Child
C                A
C                B
A                Z

The cube must display this situation as follows:

LineManagerLevel 1    LineManagerLevel 2    Starter    Leaver
C                                (Total)                    0                0
C                                A                            1                0
C                                B                            0                1

An idea to solve this problem is a calculated measure in which I would check if the current node in the LineManagerHierarchy is a parent/ascendant of both line managers in the fact table.
As I'm not quite familiar with MDX I don't know, whether this is even possible.

Any suggestions are highly welcome!

Greetings Bjoern

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close