I am using HS.SetDatawithPov to input data at proportion level. But I want to do this for only one specific entity. Following is my code
If pov_value="[Proportion]" THEN
If pov_entity=E1 Then
HS.SetDatawithPOV "A#A1.C1#[None].C2#[None].C3#[None].C4#[None].I#[ICP None]",100,false
When i run the rule, no value is input in any of the entity members in any of the value dimension members(also no error shows up). But when I comment out lines 2 and 4 and run, then I get the value of 100 in proportion for all entities. I want this 100 to come only for entity E1. Is there anything that I am missing out?
Appreciate all the help!
Yup, I did put quotes around E1 and have used it in Calculate routine.
I figured out the solution. It was because there was no else part of the IF and since it didnt knew what to do for other entities, it either did the same to all or nothing to all. After I used ELSEIF condition, the rule is working fine.