hi ,
I am using this MDX.
i have a date parameter.
i have to show the data in three sets.
1. current month(201302)
2. next six months from current months.(201203-201209)
3. next six months form the last of 2 point(201309-201402)
so i tried this way.
SELECT [Date].[Calendar].[Calendar YearMo].Members ON 0, {[Sales Territory].[Sales Territory Country].[United States]} + {[Sales Territory].[Sales Territory Country].[Canada]} ON 1 FROM [HCA_DW] WHERE ( {[Measures].[Sales Amount]}, {[Date].[Calendar].&[20130201] : [Date].[Calendar].&[20130131]} )
I am getting the data as ..
201201 201202 201203 201204
United States $7,652,625.30 $19,749,246.06 $22,909,628.84 $12,686,090.53
Canada $1,660,189.26 $5,444,601.58 $6,187,089.89 $3,063,889.72
but I want to more group as shown in the below pic.
what is the best way to do this using mdx.
Thanks in advance.