Elements with Same Name
Posted: Wed Jan 14, 2015 9:01 pm
Hi all,
I have a dimension which stores member names as elements. I created the element in TI process by concatenating member's first name and last name. However, since only unique element names can be created and stored in a dimension, the members whose names are same as others are not being created. In order to make the names unique I could concatenate them with their respective ages eg. Stephen Connoly_55, Stephen Connolly_8 but the requirement is not to display the age in the name as it looks odd. Else, I can concatenate the age only when the first and last names of members match to make them unique.
So while defining the element in the TI process, I'm stuck at the syntax to define during the IF condition.
vMemName = Mem_First_Name |' '| Mem_Last_Name;
If (.....);
vMemName = Mem_First_Name |' '| Mem_Last_Name |'_ '| Age;
Endif;
I'd appreciate if somebody could assist me how to put across the condition to identify same first names and last names within IF function.
Thanks for your time and help.
I have a dimension which stores member names as elements. I created the element in TI process by concatenating member's first name and last name. However, since only unique element names can be created and stored in a dimension, the members whose names are same as others are not being created. In order to make the names unique I could concatenate them with their respective ages eg. Stephen Connoly_55, Stephen Connolly_8 but the requirement is not to display the age in the name as it looks odd. Else, I can concatenate the age only when the first and last names of members match to make them unique.
So while defining the element in the TI process, I'm stuck at the syntax to define during the IF condition.
vMemName = Mem_First_Name |' '| Mem_Last_Name;
If (.....);
vMemName = Mem_First_Name |' '| Mem_Last_Name |'_ '| Age;
Endif;
I'd appreciate if somebody could assist me how to put across the condition to identify same first names and last names within IF function.
Thanks for your time and help.