Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
MRIGUY
Starting Member
17 Posts |
Posted - 2002-02-12 : 17:11:35
|
This query gives me the amount for each quarter. Q1 50Q2 100Q3 10I need to get a "running total" as the data is returned.Q1 50Q2 150Q3 160I'm not sure which function to use. I've looked at RollupChildren and Sum. I haven't been successful getting these to work because I'm not sure WHERE I need to use the function. Should it be in the calculated member? Here's the query. Any help would be appreciated.WITH MEMBER [Account_dim].[BeginBal] AS '([Period_Dim].CurrentMember,[Account_dim].[R_EV])'SELECT {[BeginBal]} ON COLUMNS, {[Period_Dim].[Quarter].Members} ON ROWSFROM GHISWHERE ([Entity_Dim].[Entity Id].[0609]) |
|
Tim
Starting Member
392 Posts |
Posted - 2002-03-06 : 18:55:25
|
have a read about the "PartialSum" function |
|
|
|
|
|