TI code to break the Parent-Child relationship in dimension
Posted: Wed Apr 03, 2013 5:29 am
Hi,
Can anybody give me a TI code to break the Parent-Child relationship in a dimension, so that I can directly update the dimension.
Eg : I have Employee dimension with hierarchy Locations --> Employees.
I want to update the dimension using the latest employee file. I don't want to 'Recreate' since the new file may not contain some employees who were part of the Employee dimension earlier. If I directly update, an employee with a 'changed' location in the new file may come under 2 locations (So values may get doubled up during data loading)
So If we can break the parent child relationship, then I can directly update the dimension without duplicating employees.
I have heard from somebody that such a code can be written, any help ?
Regards
Sree
Can anybody give me a TI code to break the Parent-Child relationship in a dimension, so that I can directly update the dimension.
Eg : I have Employee dimension with hierarchy Locations --> Employees.
I want to update the dimension using the latest employee file. I don't want to 'Recreate' since the new file may not contain some employees who were part of the Employee dimension earlier. If I directly update, an employee with a 'changed' location in the new file may come under 2 locations (So values may get doubled up during data loading)
So If we can break the parent child relationship, then I can directly update the dimension without duplicating employees.
I have heard from somebody that such a code can be written, any help ?
Regards
Sree