Vadim, you idea resolved my issue. thanks.
But I still want to know that what went wrong in my logic script, in which I use Look Up command. I looked up three time dimension member TIME1, TIME2, and TIME3 (as attached in text file in first message), But output of my script was showing total for %TIMEID% and last period i.e. TIME3 and getting divided by 4.
Regards,