Hello!
I want to create a new member of a dimension with a parent-child hierarchy established. This new member should be on the top of the hierarchy, so have no parents (<root> as a parent ID).
I tried this code in the Analytics Designer script but got an error during the runtime. I guess "<root>" isn't the correct string for this code
var parent = "<root>";
PlanningModel.createMembers("Dimension", {id: Id, description: desc,
hierarchies:{H1: {parentId: parent,}
})
Please advise, how should I refer to the parent node
Thanks,
Yuri