I have written script which is showing correct results for the base members like month 2008.04,2008.05,2008.06 etc, but, these values are not rolling up to correctly on 2008.Q1, 2008.Q2,2008.Q3, 2008.Q4.
screenshots for the script, report and Time Dimension are attached.
another issue is how can I make this script dynamic for TIME?