on 08-18-2023 7:59 AM
Hi,
my desire is to generate a automated copy of an existing version every month at the same day.
This created copy of an existing version should be trimmed as follows:
- the date range should be starting from current month and X months forwards
- copied values containing "0" should be deleted
- values with digits after decimal point should be rounded to integers
Since i want the same version to be filled every month and not create another version every month, it would be perfect to design the date range dynamically, depending on curren month of creation.
Does anybody have an idea how to set this up in a data action?
Thanks for any help possible!
BR,
Eric
ericliefke
ericliefkeThe below should do the job. Adjust as per your model and dimensions. I am running this for only Quantities but you can adjust your scope accordingly
Create a parameter for Month forward
MEMBERSET [d/MEASURE]="QUANTITY" // Adjust or remove if required for all measures
MEMBERSET [d/CALMONTH]=PERIOD(TODAY()) TO NEXT(%N%,"MONTH",TODAY()) // You can hardcode Months forward if parameter not required
IF RESULTLOOKUP()!=0 THEN
DATA()=ROUND(RESULTLOOKUP() ,0 )
ELSE
DELETE()
ENDIF
Initial Forecast:
After Copy:
Affected records August to October
145.40 rounded to 145 for August
135.75 rounded to 136 for September
0 for October got deleted
Hope this helps !!
Please upvote/accept if this helps !!
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.