I want to build a dimension in Transformer from a self-referenecing table. i.e.
CuatomerID, Name, ParentCustomerID
1, Jack, 0
10, Jill, 1
11, Jason, 1
20, Fred, 10
21, Frank, 10
So, a customer can both be a parent and have a parent, and I want a dimension that represents the hierarchy. What I want is to create different levels based on the position in the hierarchy, but to do that I need individual column names. Any idea of how to do this?
Thanks.
CuatomerID, Name, ParentCustomerID
1, Jack, 0
10, Jill, 1
11, Jason, 1
20, Fred, 10
21, Frank, 10
So, a customer can both be a parent and have a parent, and I want a dimension that represents the hierarchy. What I want is to create different levels based on the position in the hierarchy, but to do that I need individual column names. Any idea of how to do this?
Thanks.