Hi Experts,
I am writing a logic script to calculate the average value of current period and past three period. I have written logic for that. But I am facing issue in that. First I share the requirement.
User will select the Version and Entity in DMP. Based on the version selected in DMP, the dimension member of time will be derived (Note: Time is one of the property of Version Dimension. Based on the entity selected in DMP, segment will be driven. This was the part of DMP.
There are following dimensions in the model i.e. DataSrc, Account, Version, Time, RptCurrency, Entity.
DataSrc: Input
Account: 20001113, 2000114
Version: Actual
Time: this is being driven by time property of the version selected in DMP, which eventually referred in script logic.
RptCurrency: LC
Entity: Member will be selected from DMP, which eventually called in Script Logic
Segment: This will be driven by segment property of Entity.
How logic script would work is: it will take the time dimension member from time property of Version Dimension and will be added with past three period lets say, User selects PLAN_1 in DMP and runs it. Time Property value is 2016.09 (last period of qtr). Data of the time (2016.09) will add with data of time 2016.06, 2016.03. 2015.12. in the end, the average value (Total/4) will be posted to different Data Srs.
(User selects PLAN_1 version just to derive the time only) but in logic script, version will be Actual).
Attached in txt file is the logic which I have written. Issue is this logic is fetching data of first period and last period and is skipping middle two periods. I don't know why.
Regards,