balance on accounts that are still open


hi,  darren showed @ http://social.msdn.microsoft.com/forums/en-us/sqlanalysisservices/thread/9bd27950-35f5-4262-834a-0d51ab7a2767 how can sum trans beginning of time, relative dragged accounting date dim in calc'd member ...

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

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........