Hi Experts,
I need to change the values(numbers) for one of the columns(KF from bex) of a Crosstab based on condition like if the value is 1, it should be replaced with a text called 'Ahead', if it is 2 it should be replaced with a text called 'Behind'.
I am trying to achieve like below. Get the list of values of the KF in an array and loop over that array and change the field value to text, but i am stuck up in the first step itself.
var list = DS1.getMembers(Measures, 100).
Here i am unable to give the Measure's Extended UID, Ctrl+Space shows only the KF Structure id, but i need to specify the individual Structure element's id. How to specify the individual KF Structure element when we have KF Structure in bex ? The measure which i need to replace with text is one of the elements of a KF Structure which i am trying to capture in an array called 'list'.
After the above hurdle is removed, will the below code work to replace the number to text ?
list.forEach(function(element, index)
{
if (element == 1)
{
element == 'Ahead';
}
else if (element == 2)
{
element == 'Behind';
}
}
Thanks & Regards,
Kesavan.