Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

transforming a hierarchy in to a flat file

$
0
0

Hi,

 

I want to create a datasource to control access management.   It should have a column per employee, and a column showing what that person is allowed to see.  

 

Today I have an HR hierarchy where for each row it's one employee, then has separate columns for manager, head of department, VP, etc.  

 

i.e.   employee1    manager    dept head   

        employee2    manager    dept Head  

 

How do I  transform it so it has the format below? (open to suggestions if there is a better way)

 

i.e.

 

employee1               employee1

employee2               employee2

manager                   manager

manager                   employee1

manager                   employee2

dept head                 dept head

dept head                 manager

dept head                 employee1

dept head                 employee2

 

Many thanks!

K


Viewing all articles
Browse latest Browse all 4999

Trending Articles