dbTalk Databases Forums  

Measures

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


Discuss Measures in the microsoft.public.sqlserver.olap forum.



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

Default Measures - 06-02-2006 , 08:09 AM






I want to just list the values for a specific level or measure but not sum
it. Is there a MDX query that I can list, i.e. - the commission amount for
all employees or particular employees?

Reply With Quote
  #2  
Old   
Tim Dot NoSpam
 
Posts: n/a

Default Re: Measures - 06-05-2006 , 12:19 PM






Sam, is the "commission amount" in the measure group or is it an attribute
of the dimension?

If it's in the measure group (i.e,. out of the fact table) then it should,
by definition, be semi-additive, so unless you're selecting the lowest level
of the dimension hierarchy, it should sum right? If for example, you're
looking at the sales region - employee hierarchy, then sales region
commissions are actually the sum of the commissions for all employees in the
region. And without time, the commisision for an employee is the sum of all
commissions for that employee over all time.

If it's an atribute of the dimension, then its just:

select {[Employee].[Employee Name], [Employee].[Commission Amount] } ON
COLUMNS,
{} ON ROWS
FROM [MyCube]

"SAM" <SAM (AT) discussions (DOT) microsoft.com> wrote

Quote:
I want to just list the values for a specific level or measure but not sum
it. Is there a MDX query that I can list, i.e. - the commission amount for
all employees or particular employees?



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.