dbTalk Databases Forums  

Complex Count

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


Discuss Complex Count in the microsoft.public.sqlserver.olap forum.



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

Default Complex Count - 11-10-2006 , 03:21 PM






Hi,

I'm trying to count the result of a MDX query. I have a calculated
member which I use in the following query:

select [Measures].[Calc Member Amount Group] on 0.
[Customers].[Customers].Members on 1
from [Sales]

The results of this query would be for each row the amount group of the
corresponding customer.
Over this result I would like to perform another query to Sum all the
ocurrences of the amount groups. grouped by amount group.

In T-SQL would be:

select Count([Amount Group])
from [Sales]
group by [Amount Group]

Can any one tell me how can I do this in MDX?

Tks.


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.