All,
I'm in the process of learning MDX, OLAP ... etc. I tried running this code via SSMS and encountered an error for the Calculated Member - [Warehouse Margin]. Though it is not returning an error on the messages tab, in the results tab the cell has #Error instead of a value. The Cube is based on the [FoodMart 2005] database.
The SSAS version is 11.0.2100
Thanks,
rgn
WITH
MEMBER [Measures].[Warehouse Margin] AS
([Time].CurrentMember , [Measures].[Store Sales])-([Time].Currentmember, [Measures].[Store Cost])
SELECT
{[Measures].[Store Sales],[Measures].[Store Cost],[Measures].[Warehouse Margin]}
ON COLUMNS,
{([Store].[Store Country].[USA])} ON ROWS
FROM Budget
WHERE ([Time].[1998])