Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Error on Calculated member

$
0
0

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])


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>