dbTalk Databases Forums  

Calc member summarize without total level in one dimension

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Calc member summarize without total level in one dimension in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Magnus
 
Posts: n/a

Default Calc member summarize without total level in one dimension - 04-27-2005 , 06:58 AM






Hi,

How could I summarize my measures for dimension Owner, which have 5 members,
without a all member level (no total for that dimension)?

My MDX-query:
SELECT {[Measures].[Tot Sales],
[Measures].[Previous YTD Sales],
[Measures].[YTD Growth],
[Measures].[YTD Förpackningar]} on columns,
{[Product].[Prodcategori].members} on rows
FROM Sales_cube
WHERE ([Period].[2005-04])

Thanks!

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Calc member summarize without total level in one dimension - 04-27-2005 , 07:45 PM






One way would be to define a calculated member on the Owner dimension
that aggregates the 5 members, like:

Quote:
With Member [Owner].[AllOwners] as
'Aggregate([Owner].[OwnerName].Members)'

SELECT {[Measures].[Tot Sales],
[Measures].[Previous YTD Sales],
[Measures].[YTD Growth],
[Measures].[YTD Förpackningar]} on columns,
{[Product].[Prodcategori].members} on rows
FROM Sales_cube
WHERE ([Period].[2005-04],[Owner].[AllOwners])
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
Magnus
 
Posts: n/a

Default Re: Calc member summarize without total level in one dimension - 04-28-2005 , 08:26 AM



Thanks! It worked out fine!
/Magnus

"Deepak Puri" wrote:

Quote:
One way would be to define a calculated member on the Owner dimension
that aggregates the 5 members, like:


With Member [Owner].[AllOwners] as
'Aggregate([Owner].[OwnerName].Members)'

SELECT {[Measures].[Tot Sales],
[Measures].[Previous YTD Sales],
[Measures].[YTD Growth],
[Measures].[YTD Fvrpackningar]} on columns,
{[Product].[Prodcategori].members} on rows
FROM Sales_cube
WHERE ([Period].[2005-04],[Owner].[AllOwners])



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.