Thank you Zoe,
however, your MDX is mixing products and time. I changed the mdx to my cube of 2008R2 Adventure Works:
With Member
[Date].[Calendar].[ytd] AS
aggregate([Date].[Calendar].[Month].&[2007]&1:[Date].[Calendar].[Month].&[2007]&[6])
Member
[Date].[Calendar].[rest] AS
aggregate([Date].[Calendar].[Month].&[2007]&[7]:[Date].[Calendar].[Month].&[2007]&[12])
Member
[Product].[Category].[Forcast] AS
aggregate( {([Product].[Category].&1,[Date].[Calendar].[ytd])
,([Product].[Category].&[4] ,[Date].[Calendar].[rest])} )
Member
[Product].[Category].[Actual] AS
aggregate( {([Product].[Category].&1,[Date].[Calendar].[rest])
,([Product].[Category].&[4] ,[Date].[Calendar].[ytd])} )
--Totals
Select
{[Product].[Category].[Forcast],[Product].[Category].[Actual]}
On Columns,
{[Measures].[Order Quantity]} On Rows
FROM [Adventure Works];
--Details
Select
{[Date].[Calendar].[ytd], [Date].[Calendar].[rest]}*
{[Product].[Category].&1, [Product].[Category].&[4]}
On Columns,
{[Measures].[Order Quantity]} On Rows
FROM [Adventure Works]; --Version: Adventure Works DW 2008R2
Results Totals:
Results Details:
Pls. check the colours, it is adding bikesytd + accessoriesrest.