INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*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.

# Employee Movement Cube

## Employee Movement Cube

(OP)
Hello,

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.

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!