Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Variables

I have the following calendar script:

Screen Shot 2016-04-29 at 08.46.36.png

I then use the PeriodID, MonthID and QuarterID to create set variables for year to date, month to date etc as per the attached script.  I have added a fiscal calendar to the Master Calendar and now want to adjust the attached set variables to do the year to date, month to date etc using the fiscal dates.  How can this be accomplished?

Regards

4 Replies
santiago_respane
Specialist
Specialist

Hi Christopher,

where are you using those expressions?

Are you using set analysis in the loading script?

Please elaborate more in order to be able to help you!

Kind regards,

jonathandienst
Partner - Champion III
Partner - Champion III

Just create 3 more fields in the topmost LOAD step using the fiscal year, quarter, month and week fields from preceding load step using the same logic as the existing calendar ID's.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Many thanks Santiago

I load the script at the back end of the app as below and use set analysis on the front end with the loaded variables as follows:

Screen Shot 2016-04-29 at 16.30.56.png

Screen Shot 2016-04-29 at 16.31.52.png

Anonymous
Not applicable
Author

Thanks Jonathan

I have done it as follows:

Screen Shot 2016-04-29 at 16.30.18.png

I am not quite sure how to approach it for the fiscal year, i.e. generate the PeriodID for the fiscal year

Regards.