Google グループは Usenet の新規の投稿と購読のサポートを終了しました。過去のコンテンツは引き続き閲覧できます。
Dismiss

Adding "Grand Total" at the bottom...

閲覧: 72 回
最初の未読メッセージにスキップ

Toby

未読、
2006/08/30 13:59:012006/08/30
To:
I fairly new to SQL Server 2005 SSAS. I'm using the sample that is provided
with 2005.

I have the following MDX statement:

WITH SET [Data] AS
'{[Measures].[Internet Order Count], [Measures].[Internet Total Product
Cost],
[Measures].[Internet Sales Amount], [Measures].[Internet Average Unit Price],
[Measures].[Internet Gross Profit Margin]}'

SELECT
[Data] ON COLUMNS,
[CUSTOMER Geography].[Country].AllMembers ON ROWS
FROM [Adventure Works]


It returns the data correctly, however, I want to add the grand totals for
each column, like it does when you use the browser in BIDS.

Any help is appreciated and thanks in advance

ChrisHarrington

未読、
2006/08/30 23:25:592006/08/30
To:
Just add the All member:

WITH SET [Data] AS '{
[Measures].[Internet Order Count],
[Measures].[Internet Total Product Cost],
[Measures].[Internet Sales Amount],
[Measures].[Internet Average Unit Price],
[Measures].[Internet Gross Profit Margin]
}'

SELECT
[Data]
ON COLUMNS,
{
[Customer].[Customer Geography].[Country].AllMembers,
[Customer].[Customer Geography].[All Customers]


}
ON ROWS
FROM [Adventure Works]

"Toby" <To...@discussions.microsoft.com> wrote in message
news:C4B159DD-BEA9-40EF...@microsoft.com...

新着メール 0 件