balance on accounts that are still open
sum( null : [date].[calendar].currentmember, measures.[transaction amount])
if want summation showing in particular slice trans "close date" (which isnt dragged) is >= upper boundary of "accounting date" slice, on right track following?...
sum(
(null : [date].[calendar].currentmember,[date].[closedate].[date] >= tail([date].[calendar].currentmember)),
measures.[transaction amount])
the type of problem you're trying address 1 referred in-flight metrics. mosha has written excellent blog posting on topic. http://sqlblog.com/blogs/mosha/archive/2007/06/01/counting-in-flight-events-in-mdx.aspx i'm little confused posting above though , don't know if approach mosha suggests work design. above, [date].[close date] hierarchy in same dimension [date].[calendar] dimension. shouldn't these 2 different cube dimensions? then, approach aggregate( crossjoin( null:[date].[calendar].currentmember, linkmember([date].[calendar].currentmember, [close date].[calendar]): null ), [measures].[transaction amount] )
SQL Server > SQL Server Analysis Services
Comments
Post a Comment