I have a package that includes a prompt for a time period. It also contains a section where some time periods are hard coded directly in the script and I am looking for a way to eliminate the manual update required for those time periods. As of right now, March is our active month for posting so I would be choosing 2016.MAR when running the package. The periods required in the "manual section" are the 12 monthly periods ending with 2016.MAR, so in this scenario I would need from 2015.APR through 2016.MAR
I can use the line below to get the periods from the current year but how can I do the same for the months that are part of the prior year?
*SELECT(%CURYRPRDS%,"[ID]", "TIME", "[YEAR] = '%TIME_FY%' AND [TIMEID] <= '%CURTIMEID%' AND [LEVEL] = 'MONTH' ")
For reference, our year runs from OCT to SEP and we have a "monthnum" property in our time dimension with values from 1-12 for each month.