tm123 wrote:If you're not using the wizard, then it's easy to resolve this issue. Looking at your sample data, your source file contains 3 columns, which in most cases represent a child-parent-grandparent relationship.
So in your metadata tab, with the assumption that you have 3 variables named (vElement, vParent, vGrandParent) then your code should look like:
IF ( vElement @<> '' ) ;
DIMENSIONELEMENTINSERT ( sDimName,'', vElement ,'N' );
ENDIF ;
IF ( vParent @<> '' ) ;
DIMENSIONELEMENTINSERT ( sDimName,'', vParent ,'C' );
ENDIF ;
IF ( vGrandParent @<> '' ) ;
DIMENSIONELEMENTINSERT ( sDimName,'', vGrandParent ,'C' );
ENDIF ;
IF ( vElement @<> vParent ) ;
DIMENSIONELEMENTCOMPONENTADD ( sDimName , vParent , vElement , 1 ) ;
ENDIF ;
IF ( vParent @<> vGrandParent ) ;
DIMENSIONELEMENTCOMPONENTADD ( sDimName , vGrandParent , vParent , 1 ) ;
ENDIF ;
DIMENSIONELEMENTCOMPONENTADD(sDimName,cTotalEmployee , vEmployeeLevel , 1.000000);
Thanks for your kindy explanation.
My TI problem is solved clearly by your advice.
in my case I changed
DIMENSIONELEMENTCOMPONENTADD(sDimName,cTotalEmployee , vEmployeeLevel , 1.000000) to
DIMENSIONELEMENTCOMPONENTADD('COM_OPEX Costcenter',vParent ,vElement ,1.000000)
And now There is no error and worked well.
really really Thanks so much.