Wednesday, March 28, 2012
memory - PAE / AWE...........
advanced server.
My server has 3 GB of memory. PAE is enables in the
boot.ini. My memory to mssql is unrestricted. In the task
manager, the memory of mssql shows as 2.7GB. I still have
page faults at 9,27,6683 for 21 days of non-reboot.
Is MSSQL really using 2.7 GB? DO I need more memory?
What is the 'awe enabled' option all about?
regards,
bharathIf you have only 3 GB then the only switch you need in boot.ini is /3GB, you
don't need /PAE. Assuming you have SQL2000 Enterprise Edition then SQL
Server will be able to use the memory. You don't need to enable awe when you
only have 3GB of RAM.Which counter are you using to determine page faults ?
--
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"bharath" <anonymous@.discussions.microsoft.com> wrote in message
news:0a1701c3d5b6$f9aec310$a101280a@.phx.gbl...
> My server is a mssql2000 sp3 server in windows 2000
> advanced server.
> My server has 3 GB of memory. PAE is enables in the
> boot.ini. My memory to mssql is unrestricted. In the task
> manager, the memory of mssql shows as 2.7GB. I still have
> page faults at 9,27,6683 for 21 days of non-reboot.
> Is MSSQL really using 2.7 GB? DO I need more memory?
> What is the 'awe enabled' option all about?
> regards,
> bharath
Memory
have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
memory i can put in the server without it crashing i would appreciate it if u
could reply. thank you.Ummm...as much as the motherboard will support? Check with the board
manufacturer...
--
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
www.experts-exchange.com - experts compete for points to answer your
questions
"needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>i have a Windows 2000 Advanced Server machine service pack 4 (build 2195) i
> have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
> memory i can put in the server without it crashing i would appreciate it
> if u
> could reply. thank you.|||i meant how much memory can the SQL server take berfore the network crashes
--
tha best man
"Kevin3NF" wrote:
> Ummm...as much as the motherboard will support? Check with the board
> manufacturer...
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
> www.experts-exchange.com - experts compete for points to answer your
> questions
>
> "needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
> news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
> >i have a Windows 2000 Advanced Server machine service pack 4 (build 2195) i
> > have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
> > memory i can put in the server without it crashing i would appreciate it
> > if u
> > could reply. thank you.
>
>|||memory has nothing to do with networking.
It all depends on how much memory you can afford and how much your
motherboard supports. Then comes the issue of if the edition of windows you
are using supports the amount of memory.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"needhelpman" <da1yellabone@.yahoo.com> wrote in message
news:C962D4A4-4DD9-4C94-A5A6-04D068DFF272@.microsoft.com...
>i meant how much memory can the SQL server take berfore the network crashes
> --
> tha best man
>
> "Kevin3NF" wrote:
>> Ummm...as much as the motherboard will support? Check with the board
>> manufacturer...
>> --
>> Kevin Hill
>> President
>> 3NF Consulting
>> www.3nf-inc.com/NewsGroups.htm
>> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
>> www.experts-exchange.com - experts compete for points to answer your
>> questions
>>
>> "needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
>> news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>> >i have a Windows 2000 Advanced Server machine service pack 4 (build
>> >2195) i
>> > have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
>> > memory i can put in the server without it crashing i would appreciate
>> > it
>> > if u
>> > could reply. thank you.
>>|||The amount of memory SQL Server can use is dependant on the OS edition and
the SQL Edition. Please see the Maximum Capacity Specs in BooksOnLine for
exactly what these are.
--
Andrew J. Kelly SQL MVP
"needhelpman" <da1yellabone@.yahoo.com> wrote in message
news:C962D4A4-4DD9-4C94-A5A6-04D068DFF272@.microsoft.com...
>i meant how much memory can the SQL server take berfore the network crashes
> --
> tha best man
>
> "Kevin3NF" wrote:
>> Ummm...as much as the motherboard will support? Check with the board
>> manufacturer...
>> --
>> Kevin Hill
>> President
>> 3NF Consulting
>> www.3nf-inc.com/NewsGroups.htm
>> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
>> www.experts-exchange.com - experts compete for points to answer your
>> questions
>>
>> "needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
>> news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>> >i have a Windows 2000 Advanced Server machine service pack 4 (build
>> >2195) i
>> > have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
>> > memory i can put in the server without it crashing i would appreciate
>> > it
>> > if u
>> > could reply. thank you.
>>sql
Memory
have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
memory i can put in the server without it crashing i would appreciate it if
u
could reply. thank you.Ummm...as much as the motherboard will support? Check with the board
manufacturer...
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
www.experts-exchange.com - experts compete for points to answer your
questions
"needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>i have a Windows 2000 Advanced Server machine service pack 4 (build 2195) i
> have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
> memory i can put in the server without it crashing i would appreciate it
> if u
> could reply. thank you.|||i meant how much memory can the SQL server take berfore the network crashes
--
tha best man
"Kevin3NF" wrote:
> Ummm...as much as the motherboard will support? Check with the board
> manufacturer...
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
> www.experts-exchange.com - experts compete for points to answer your
> questions
>
> "needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
> news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>
>|||memory has nothing to do with networking.
It all depends on how much memory you can afford and how much your
motherboard supports. Then comes the issue of if the edition of windows you
are using supports the amount of memory.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"needhelpman" <da1yellabone@.yahoo.com> wrote in message
news:C962D4A4-4DD9-4C94-A5A6-04D068DFF272@.microsoft.com...[vbcol=seagreen]
>i meant how much memory can the SQL server take berfore the network crashes
> --
> tha best man
>
> "Kevin3NF" wrote:
>|||The amount of memory SQL Server can use is dependant on the OS edition and
the SQL Edition. Please see the Maximum Capacity Specs in BooksOnLine for
exactly what these are.
Andrew J. Kelly SQL MVP
"needhelpman" <da1yellabone@.yahoo.com> wrote in message
news:C962D4A4-4DD9-4C94-A5A6-04D068DFF272@.microsoft.com...[vbcol=seagreen]
>i meant how much memory can the SQL server take berfore the network crashes
> --
> tha best man
>
> "Kevin3NF" wrote:
>
Memory
have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
memory i can put in the server without it crashing i would appreciate it if u
could reply. thank you.
Ummm...as much as the motherboard will support? Check with the board
manufacturer...
Kevin Hill
President
3NF Consulting
www.3nf-inc.com/NewsGroups.htm
www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
www.experts-exchange.com - experts compete for points to answer your
questions
"needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>i have a Windows 2000 Advanced Server machine service pack 4 (build 2195) i
> have a 1.73 gigahertz AMD Athlon XP processor and im wondering how much
> memory i can put in the server without it crashing i would appreciate it
> if u
> could reply. thank you.
|||i meant how much memory can the SQL server take berfore the network crashes
tha best man
"Kevin3NF" wrote:
> Ummm...as much as the motherboard will support? Check with the board
> manufacturer...
> --
> Kevin Hill
> President
> 3NF Consulting
> www.3nf-inc.com/NewsGroups.htm
> www.DallasDBAs.com/forum - new DB forum for Dallas/Ft. Worth area DBAs.
> www.experts-exchange.com - experts compete for points to answer your
> questions
>
> "needhelpman" <needhelpman@.discussions.microsoft.com> wrote in message
> news:0ED5AA99-9F18-4DBD-AD00-2ABA9E77524B@.microsoft.com...
>
>
|||memory has nothing to do with networking.
It all depends on how much memory you can afford and how much your
motherboard supports. Then comes the issue of if the edition of windows you
are using supports the amount of memory.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"needhelpman" <da1yellabone@.yahoo.com> wrote in message
news:C962D4A4-4DD9-4C94-A5A6-04D068DFF272@.microsoft.com...[vbcol=seagreen]
>i meant how much memory can the SQL server take berfore the network crashes
> --
> tha best man
>
> "Kevin3NF" wrote:
|||The amount of memory SQL Server can use is dependant on the OS edition and
the SQL Edition. Please see the Maximum Capacity Specs in BooksOnLine for
exactly what these are.
Andrew J. Kelly SQL MVP
"needhelpman" <da1yellabone@.yahoo.com> wrote in message
news:C962D4A4-4DD9-4C94-A5A6-04D068DFF272@.microsoft.com...[vbcol=seagreen]
>i meant how much memory can the SQL server take berfore the network crashes
> --
> tha best man
>
> "Kevin3NF" wrote:
Memories
what the various stats are telling me:
Enterprise Manager Min Memory: 0 M
Enterprise Manager Max Memory: 6000 M
Computer Management Tot. Physical Memory: 7863 M
Computer Management Avail. Physical Memory: 5501 M
Performance Monitor Total Server Memory: 1673 M
Performance Monitor Target Server Memory: 1673 M
And, finally, here is what I believe is in our boot.ini file:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
Server" /fastdetect /12gb /pae
This leads to a couple of questions:
1. Why does Perf Monitor say we are using so little memory? Is this
because it can't detect the extra memory or because it's truly not being used?
2. How can I check for sure that Sql Server is using up to the 6G of
memory, i.e. what is the final word?
3. Is our boot ini file set up correctly for our situation?
In your Boot.ini the error is /12GB this parameter doesn't exist.
The correct configuration for you boot.ini in machine with above the 4GB is:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
Server" /fastdetect /3GB /pae
In SQL Server enable the AWE support:
sp_configure 'awe enabled', 1
go
reconfigure with override
go
After restart your SQL Server.
Look at:
http://www.sql-server-performance.com/awe_memory.asp
When you want limit the SQL Server memory use, configure the "max server
memory" parameter:
sp_configure 'max server memory', 6144
go
reconfigure with override
go
** * Esta msg foi útil pra você ? Ent?o marque-a como tal. ***
Regards,
Rodrigo Fernandes
"CLM" wrote:
> I've got Sql Server 2000 SP2 on a Windows 2000 Advanced Server SP4. Here's
> what the various stats are telling me:
> Enterprise Manager Min Memory: 0 M
> Enterprise Manager Max Memory: 6000 M
> Computer Management Tot. Physical Memory: 7863 M
> Computer Management Avail. Physical Memory: 5501 M
> Performance Monitor Total Server Memory: 1673 M
> Performance Monitor Target Server Memory: 1673 M
> And, finally, here is what I believe is in our boot.ini file:
> multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
> Server" /fastdetect /12gb /pae
> This leads to a couple of questions:
> 1. Why does Perf Monitor say we are using so little memory? Is this
> because it can't detect the extra memory or because it's truly not being used?
> 2. How can I check for sure that Sql Server is using up to the 6G of
> memory, i.e. what is the final word?
> 3. Is our boot ini file set up correctly for our situation?
>
>
>
|||Thx for the help.
Another question for you: can list some of the good Sql Server links that
are in spanish? I'm trying to learn Spanish and would like to start reading
those.
"Rodrigo Fernandes" wrote:
[vbcol=seagreen]
> In your Boot.ini the error is /12GB this parameter doesn't exist.
> The correct configuration for you boot.ini in machine with above the 4GB is:
> multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows 2000 Advanced
> Server" /fastdetect /3GB /pae
> In SQL Server enable the AWE support:
> sp_configure 'awe enabled', 1
> go
> reconfigure with override
> go
> After restart your SQL Server.
> Look at:
> http://www.sql-server-performance.com/awe_memory.asp
> When you want limit the SQL Server memory use, configure the "max server
> memory" parameter:
> sp_configure 'max server memory', 6144
> go
> reconfigure with override
> go
> --
> ** * Esta msg foi útil pra você ? Ent?o marque-a como tal. ***
> Regards,
> Rodrigo Fernandes
>
> "CLM" wrote:
Memories
what the various stats are telling me:
Enterprise Manager Min Memory: 0 M
Enterprise Manager Max Memory: 6000 M
Computer Management Tot. Physical Memory: 7863 M
Computer Management Avail. Physical Memory: 5501 M
Performance Monitor Total Server Memory: 1673 M
Performance Monitor Target Server Memory: 1673 M
And, finally, here is what I believe is in our boot.ini file:
multi(0)disk(0)rdisk(0)partition(1)\WINN
T="Microsoft Windows 2000 Advanced
Server" /fastdetect /12gb /pae
This leads to a couple of questions:
1. Why does Perf Monitor say we are using so little memory? Is this
because it can't detect the extra memory or because it's truly not being use
d?
2. How can I check for sure that Sql Server is using up to the 6G of
memory, i.e. what is the final word?
3. Is our boot ini file set up correctly for our situation?In your Boot.ini the error is /12GB this parameter doesn't exist.
The correct configuration for you boot.ini in machine with above the 4GB is:
multi(0)disk(0)rdisk(0)partition(1)\WINN
T="Microsoft Windows 2000 Advanced
Server" /fastdetect /3GB /pae
In SQL Server enable the AWE support:
sp_configure 'awe enabled', 1
go
reconfigure with override
go
After restart your SQL Server.
Look at:
http://www.sql-server-performance.com/awe_memory.asp
When you want limit the SQL Server memory use, configure the "max server
memory" parameter:
sp_configure 'max server memory', 6144
go
reconfigure with override
go
** * Esta msg foi útil pra você ? Ent?o marque-a como tal. ***
Regards,
Rodrigo Fernandes
"CLM" wrote:
> I've got Sql Server 2000 SP2 on a Windows 2000 Advanced Server SP4. Here'
s
> what the various stats are telling me:
> Enterprise Manager Min Memory: 0 M
> Enterprise Manager Max Memory: 6000 M
> Computer Management Tot. Physical Memory: 7863 M
> Computer Management Avail. Physical Memory: 5501 M
> Performance Monitor Total Server Memory: 1673 M
> Performance Monitor Target Server Memory: 1673 M
> And, finally, here is what I believe is in our boot.ini file:
> multi(0)disk(0)rdisk(0)partition(1)\WINN
T="Microsoft Windows 2000 Advanced
> Server" /fastdetect /12gb /pae
> This leads to a couple of questions:
> 1. Why does Perf Monitor say we are using so little memory? Is this
> because it can't detect the extra memory or because it's truly not being u
sed?
> 2. How can I check for sure that Sql Server is using up to the 6G of
> memory, i.e. what is the final word?
> 3. Is our boot ini file set up correctly for our situation?
>
>
>|||Thx for the help.
Another question for you: can list some of the good Sql Server links that
are in spanish? I'm trying to learn Spanish and would like to start reading
those.
"Rodrigo Fernandes" wrote:
[vbcol=seagreen]
> In your Boot.ini the error is /12GB this parameter doesn't exist.
> The correct configuration for you boot.ini in machine with above the 4GB i
s:
> multi(0)disk(0)rdisk(0)partition(1)\WINN
T="Microsoft Windows 2000 Advanced
> Server" /fastdetect /3GB /pae
> In SQL Server enable the AWE support:
> sp_configure 'awe enabled', 1
> go
> reconfigure with override
> go
> After restart your SQL Server.
> Look at:
> http://www.sql-server-performance.com/awe_memory.asp
> When you want limit the SQL Server memory use, configure the "max server
> memory" parameter:
> sp_configure 'max server memory', 6144
> go
> reconfigure with override
> go
> --
> ** * Esta msg foi útil pra você ? Ent?o marque-a como tal. ***
> Regards,
> Rodrigo Fernandes
>
> "CLM" wrote:
>sql
Monday, March 26, 2012
Memories
what the various stats are telling me:
Enterprise Manager Min Memory: 0 M
Enterprise Manager Max Memory: 6000 M
Computer Management Tot. Physical Memory: 7863 M
Computer Management Avail. Physical Memory: 5501 M
Performance Monitor Total Server Memory: 1673 M
Performance Monitor Target Server Memory: 1673 M
And, finally, here is what I believe is in our boot.ini file:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Advanced
Server" /fastdetect /12gb /pae
This leads to a couple of questions:
1. Why does Perf Monitor say we are using so little memory? Is this
because it can't detect the extra memory or because it's truly not being used?
2. How can I check for sure that Sql Server is using up to the 6G of
memory, i.e. what is the final word?
3. Is our boot ini file set up correctly for our situation?In your Boot.ini the error is /12GB this parameter doesn't exist.
The correct configuration for you boot.ini in machine with above the 4GB is:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Advanced
Server" /fastdetect /3GB /pae
In SQL Server enable the AWE support:
sp_configure 'awe enabled', 1
go
reconfigure with override
go
After restart your SQL Server.
Look at:
http://www.sql-server-performance.com/awe_memory.asp
When you want limit the SQL Server memory use, configure the "max server
memory" parameter:
sp_configure 'max server memory', 6144
go
reconfigure with override
go
--
** * Esta msg foi útil pra você ? Então marque-a como tal. ***
Regards,
Rodrigo Fernandes
"CLM" wrote:
> I've got Sql Server 2000 SP2 on a Windows 2000 Advanced Server SP4. Here's
> what the various stats are telling me:
> Enterprise Manager Min Memory: 0 M
> Enterprise Manager Max Memory: 6000 M
> Computer Management Tot. Physical Memory: 7863 M
> Computer Management Avail. Physical Memory: 5501 M
> Performance Monitor Total Server Memory: 1673 M
> Performance Monitor Target Server Memory: 1673 M
> And, finally, here is what I believe is in our boot.ini file:
> multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Advanced
> Server" /fastdetect /12gb /pae
> This leads to a couple of questions:
> 1. Why does Perf Monitor say we are using so little memory? Is this
> because it can't detect the extra memory or because it's truly not being used?
> 2. How can I check for sure that Sql Server is using up to the 6G of
> memory, i.e. what is the final word?
> 3. Is our boot ini file set up correctly for our situation?
>
>
>|||Thx for the help.
Another question for you: can list some of the good Sql Server links that
are in spanish? I'm trying to learn Spanish and would like to start reading
those.
"Rodrigo Fernandes" wrote:
> In your Boot.ini the error is /12GB this parameter doesn't exist.
> The correct configuration for you boot.ini in machine with above the 4GB is:
> multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Advanced
> Server" /fastdetect /3GB /pae
> In SQL Server enable the AWE support:
> sp_configure 'awe enabled', 1
> go
> reconfigure with override
> go
> After restart your SQL Server.
> Look at:
> http://www.sql-server-performance.com/awe_memory.asp
> When you want limit the SQL Server memory use, configure the "max server
> memory" parameter:
> sp_configure 'max server memory', 6144
> go
> reconfigure with override
> go
> --
> ** * Esta msg foi útil pra você ? Então marque-a como tal. ***
> Regards,
> Rodrigo Fernandes
>
> "CLM" wrote:
> > I've got Sql Server 2000 SP2 on a Windows 2000 Advanced Server SP4. Here's
> > what the various stats are telling me:
> >
> > Enterprise Manager Min Memory: 0 M
> > Enterprise Manager Max Memory: 6000 M
> > Computer Management Tot. Physical Memory: 7863 M
> > Computer Management Avail. Physical Memory: 5501 M
> > Performance Monitor Total Server Memory: 1673 M
> > Performance Monitor Target Server Memory: 1673 M
> >
> > And, finally, here is what I believe is in our boot.ini file:
> > multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Advanced
> > Server" /fastdetect /12gb /pae
> >
> > This leads to a couple of questions:
> > 1. Why does Perf Monitor say we are using so little memory? Is this
> > because it can't detect the extra memory or because it's truly not being used?
> > 2. How can I check for sure that Sql Server is using up to the 6G of
> > memory, i.e. what is the final word?
> > 3. Is our boot ini file set up correctly for our situation?
> >
> >
> >
> >
> >
> >
Friday, March 9, 2012
Mdx Running Total
Is there any way to achieve the following:
PeriodStart TimeCharged CumulativeTotal
Oct-07 10 10
Oct-14 15 25
Oct-21 25 50
Oct-28 5 55
I am not an advanced MDX user so forgive me
if this is a dumb question.
Define CumulativeTotal as a calculated measure in the form of sum(periodstodate(...), TimeCharged). You can also use one of the shortcut variants of periodstodate such as ytd, qtd, mtd, etc.
|||From my example, this suggestion clearly does not
solve the problem. Using period to date would always
result in the same value for the cumulative column:
PeriodStart TimeCharged CumulativeTotal
Oct-07 10 55
Oct-14 15 55
Oct-21 25 55
Oct-28 5 55
Which is not what I'm looking for.
Thanks.
|||Since TimeCharged clearly changes with respect to PeriodStart, why can't you make PeriodsToDate returns different sets based on PeriodStart?|||WITH MEMBER [Measures].[CumulativeTimeCharged] AS
'SUM({NULL:[Date].[Week].CurrentMember},[Time Charged])'
SELECT NON EMPTY
{
[Measures].[CumulativeTimeCharged]
} ON COLUMNS,
NON EMPTY
{
(
[Project].[Project Description].[Project Description].ALLMEMBERS *
[Date].[Week].[Week].ALLMEMBERS
)
} ON ROWS
FROM
(
SELECT
(
NULL:STRTOMEMBER(@.ToDate, CONSTRAINED)
) ON COLUMNS
FROM
(
SELECT
(
STRTOSET(@.Project, CONSTRAINED)
) ON COLUMNS
FROM [Timesheet_Cube]
)
)
The key is the currentmember operator.
This query takes 2 parameters, the cutoff date and a dimension
(in my case a Project) for which you want your measure (in my
case TimeSheet Data) to be cumulatively shown.
This will give you an output like:
The column in "{ }" is not actually part of the output
from the query above, but is shown so you get an idea how
the Cumulative total numbers are generated.
Project Week { TimeCharged} CumulativeTotal
FooProject Oct-07 10 10
FooProject Oct-14 15 25
FooProject Oct-21 25 50
FooProject Oct-28 5 55
Cheers.
|||Thanks for the query - it's the only "Running Total"-like query I've found that worked for me.
My question is - why isn't there a simple way to create calculated members that, when spliced by Time, show the running total instead of the total for that time period? I've scoured the forums and help and books but haven't found anything that solves this yet.
Mdx Running Total
Is there any way to achieve the following:
PeriodStart TimeCharged CumulativeTotal
Oct-07 10 10
Oct-14 15 25
Oct-21 25 50
Oct-28 5 55
I am not an advanced MDX user so forgive me
if this is a dumb question.
Define CumulativeTotal as a calculated measure in the form of sum(periodstodate(...), TimeCharged). You can also use one of the shortcut variants of periodstodate such as ytd, qtd, mtd, etc.
|||From my example, this suggestion clearly does not
solve the problem. Using period to date would always
result in the same value for the cumulative column:
PeriodStart TimeCharged CumulativeTotal
Oct-07 10 55
Oct-14 15 55
Oct-21 25 55
Oct-28 5 55
Which is not what I'm looking for.
Thanks.
|||Since TimeCharged clearly changes with respect to PeriodStart, why can't you make PeriodsToDate returns different sets based on PeriodStart?|||WITH MEMBER [Measures].[CumulativeTimeCharged] AS
'SUM({NULL:[Date].[Week].CurrentMember},[Time Charged])'
SELECT NON EMPTY
{
[Measures].[CumulativeTimeCharged]
} ON COLUMNS,
NON EMPTY
{
(
[Project].[Project Description].[Project Description].ALLMEMBERS *
[Date].[Week].[Week].ALLMEMBERS
)
} ON ROWS
FROM
(
SELECT
(
NULL:STRTOMEMBER(@.ToDate, CONSTRAINED)
) ON COLUMNS
FROM
(
SELECT
(
STRTOSET(@.Project, CONSTRAINED)
) ON COLUMNS
FROM [Timesheet_Cube]
)
)
The key is the currentmember operator.
This query takes 2 parameters, the cutoff date and a dimension
(in my case a Project) for which you want your measure (in my
case TimeSheet Data) to be cumulatively shown.
This will give you an output like:
The column in "{ }" is not actually part of the output
from the query above, but is shown so you get an idea how
the Cumulative total numbers are generated.
Project Week { TimeCharged} CumulativeTotal
FooProject Oct-07 10 10
FooProject Oct-14 15 25
FooProject Oct-21 25 50
FooProject Oct-28 5 55
Cheers.
|||Thanks for the query - it's the only "Running Total"-like query I've found that worked for me.
My question is - why isn't there a simple way to create calculated members that, when spliced by Time, show the running total instead of the total for that time period? I've scoured the forums and help and books but haven't found anything that solves this yet.