More effective Set to Sum function?
- From: "Ohjoo Kwon" <ojkwon@xxxxxxxxxx>
- Date: Thu, 18 Jan 2007 11:13:43 +0900
I tested next two query and verified the same results.
The difference is different format_string is applied to CustTotal
automatically.
WITH
MEMBER Measures.CustTotal AS Sum({[Customer].[Customer
Geography].[Country].Members}*{[Measures].[Internet Sales Amount]})
SELECT
{CustTotal, [Internet Sales Amount]} ON 0,
{[Customer].[Country].Members} ON 1
FROM [Adventure Works];
WITH
MEMBER Measures.CustTotal AS Sum([Customer].[Customer
Geography].[Country].Members,[Measures].[Internet Sales Amount])
SELECT
{CustTotal, [Internet Sales Amount]} ON 0,
{[Customer].[Country].Members} ON 1
FROM [Adventure Works];
Here I'd like to know what is more effective and why it is.
Thanks in advance,
Ohjoo
.
- Prev by Date: MSAS/SQL Server 2K on VMWare
- Next by Date: Adding Hints to the SQL for processing cubes?
- Previous by thread: MSAS/SQL Server 2K on VMWare
- Next by thread: Re: More effective Set to Sum function?
- Index(es):
Relevant Pages
|