I know folks have asked this before, but none of the answers I've seen address my particular problem. I have a cube based on the AdventureWorksDW database, reseller sales. I am trying to get the moving average and I have the following in my script: CALCULATE; CREATE MEMBER CURRENTCUBE.[Measures].[Reseller Sales Moving Average] AS Avg( [Date].[Calendar].CurrentMember.Lag(6): [Date].[Calendar].CurrentMember, [Measures].[Reseller Sales Amount]) // This calculation returns the average value of a member over the specified time interval. , FORMAT_STRING = Standard, NON_EMPTY_BEHAVIOR = { [Reseller Sales Amount] }, VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Fact Reseller Sales' ; I checked the syntax and it appears to be correct.Now when I run a query in SSMS, nothing comes back.SELECT {Measures.[Reseller Sales Amount], Measures.[Reseller Sales Moving Average]} ON 0,NONEMPTY([Date].[Calendar].[Month].Members) ON 1FROM [Reseller Sales] -- reseller sales is the name of my cubeGrateful for any insight on my ridiculously simple problem.
↧