Copy data from one element to another element in a single dimension
Posted: Wed Sep 21, 2016 7:18 am
Hi Guys,
I have requirement where i have to copy data from one element to multiple other elements within a dimension. I have customer dimension and version dimension. I have to load data from my source customer to multiple target customers, similarly from source version to multiple target versions.I have a maximum of 50 target customers and 10 target versions. I am loading the data with customer and version combination. I have built lookup cube with pick list in order to pass parameters dynamically into my TI process.
Below Find My TI Code:
Prolog:
pSourceCustomer = CellGetS('Control Cube','p01','Customer Name');
pSourceVersion = CellGetS('Control Cube','p01','Version Type');
pTargetCustomer = CellGetS('Control Cube','p02','Customer Name');
pTargetVersion = CellGetS('Control Cube','p02','Version Type');
here for each parameter i am referring my lookup cube , is there any better way to optimize the TI Code to pull all the 50 parameters into my TI Process.
DATA :
IF( V3 @= pSourceCustomer & V2 @= pSourceVersion );
CellPutS(SValue,'General',V1,pTargetVersion,pTargetCustomer,V4);
ENDIF;
IF( V3 @= pSourceCustomer & V2 @= pSourceVersion );
CellPutN(NValue,'General',V1,pTargetVersion,pTargetCustomer,V4);
ENDIF;
Suggest me if there is a better way to change the TI Code.
Regards,
Arvind.
I have requirement where i have to copy data from one element to multiple other elements within a dimension. I have customer dimension and version dimension. I have to load data from my source customer to multiple target customers, similarly from source version to multiple target versions.I have a maximum of 50 target customers and 10 target versions. I am loading the data with customer and version combination. I have built lookup cube with pick list in order to pass parameters dynamically into my TI process.
Below Find My TI Code:
Prolog:
pSourceCustomer = CellGetS('Control Cube','p01','Customer Name');
pSourceVersion = CellGetS('Control Cube','p01','Version Type');
pTargetCustomer = CellGetS('Control Cube','p02','Customer Name');
pTargetVersion = CellGetS('Control Cube','p02','Version Type');
here for each parameter i am referring my lookup cube , is there any better way to optimize the TI Code to pull all the 50 parameters into my TI Process.
DATA :
IF( V3 @= pSourceCustomer & V2 @= pSourceVersion );
CellPutS(SValue,'General',V1,pTargetVersion,pTargetCustomer,V4);
ENDIF;
IF( V3 @= pSourceCustomer & V2 @= pSourceVersion );
CellPutN(NValue,'General',V1,pTargetVersion,pTargetCustomer,V4);
ENDIF;
Suggest me if there is a better way to change the TI Code.
Regards,
Arvind.