Exporting data from cube and build a new dimension
Posted: Tue Jun 03, 2014 7:41 pm
hi all, i want to export some data from a cube with 2 dimensions, and create a new dimension from that data.
Cube1 has the following dimensions:
1.- Elements ( 1,2,3,4..........400)
2.- Measures( Hijo, Padre )
as you already know, if you want to create a dimension from a txt file you need the data in columns:
Elements Hierarchy
TOTAL
A TOTAL
B TOTAL
C TOTAL
Here is the real example:
http://www.subirimagenes.net/i/140603090557515655.png
so , when i try to export the data i got this:
"SERVER:Dimensiones","1","Hijo","TOTAL CENTROS RESPONSABILIDAD"
"SERVER:Dimensiones","2","Hijo","DIRECTO"
"SERVER:Dimensiones","2","Padre","TOTAL CENTROS RESPONSABILIDAD"
"SERVER:Dimensiones","3","Hijo","0001000300"
"SERVER:Dimensiones","3","Padre","DIRECTO"
"SERVER:Dimensiones","4","Hijo","INDIRECTO"
"SERVER:Dimensiones","4","Padre","TOTAL CENTROS RESPONSABILIDAD"
"SERVER:Dimensiones","5","Hijo","0001000200"
now, somehow i need to write a script in turbo to create some colums and create de dimension, identifying who is the element and its consolidation.
this is the first time trying to do this and i'm a little lost on this... I will appreciate any tip to help me solve this problem
Thanks
Kazeh.
Cube1 has the following dimensions:
1.- Elements ( 1,2,3,4..........400)
2.- Measures( Hijo, Padre )
as you already know, if you want to create a dimension from a txt file you need the data in columns:
Elements Hierarchy
TOTAL
A TOTAL
B TOTAL
C TOTAL
Here is the real example:
http://www.subirimagenes.net/i/140603090557515655.png
so , when i try to export the data i got this:
"SERVER:Dimensiones","1","Hijo","TOTAL CENTROS RESPONSABILIDAD"
"SERVER:Dimensiones","2","Hijo","DIRECTO"
"SERVER:Dimensiones","2","Padre","TOTAL CENTROS RESPONSABILIDAD"
"SERVER:Dimensiones","3","Hijo","0001000300"
"SERVER:Dimensiones","3","Padre","DIRECTO"
"SERVER:Dimensiones","4","Hijo","INDIRECTO"
"SERVER:Dimensiones","4","Padre","TOTAL CENTROS RESPONSABILIDAD"
"SERVER:Dimensiones","5","Hijo","0001000200"
now, somehow i need to write a script in turbo to create some colums and create de dimension, identifying who is the element and its consolidation.
this is the first time trying to do this and i'm a little lost on this... I will appreciate any tip to help me solve this problem
Thanks
Kazeh.