Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Adding "Grand Total" at the bottom...

瀏覽次數:72 次
跳到第一則未讀訊息

Toby

未讀,
2006年8月30日 下午1:59:012006/8/30
收件者:
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年8月30日 晚上11:25:592006/8/30
收件者:
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 則新訊息