Hello everyone,
I have a "programming related problem" and would like to kindly ask for your help.
The issue is the following: I have quarterly data on sales names as: sales_"number of months taken by the nth trimester"_year, so for instance for the first trimester of 2004, we have "sales_03_2004", for the second "sales_06_2004", for the third "sales_09_2004" and for the last "sales_12_2004" and so on for every year until 2015. What I need to do is an yearly, 3-yearly and 4-yearly aggregation of those sales in such a way that changing a single parameter, the user can choose the desired aggregation level. I already have done 3 separate aggregations (yearly, 3-yearly and 4-yearly separately) but what I really need to do is to create a unified program in which the user can possibly choose the desired aggregation. For example something like: if I put the parameter equal to 4 I obtain a 4-yearly aggregation, if I put the parameter equal to 3 a 3-yearly an if I put the parameter equal to 1 an yearly aggregation. Is this possible?
Thank you in advance!!!
I have a "programming related problem" and would like to kindly ask for your help.
The issue is the following: I have quarterly data on sales names as: sales_"number of months taken by the nth trimester"_year, so for instance for the first trimester of 2004, we have "sales_03_2004", for the second "sales_06_2004", for the third "sales_09_2004" and for the last "sales_12_2004" and so on for every year until 2015. What I need to do is an yearly, 3-yearly and 4-yearly aggregation of those sales in such a way that changing a single parameter, the user can choose the desired aggregation level. I already have done 3 separate aggregations (yearly, 3-yearly and 4-yearly separately) but what I really need to do is to create a unified program in which the user can possibly choose the desired aggregation. For example something like: if I put the parameter equal to 4 I obtain a 4-yearly aggregation, if I put the parameter equal to 3 a 3-yearly an if I put the parameter equal to 1 an yearly aggregation. Is this possible?
Thank you in advance!!!
Comment