dbTalk Databases Forums  

MDX Max function

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


Discuss MDX Max function in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul L via SQLMonster.com
 
Posts: n/a

Default MDX Max function - 08-04-2005 , 05:57 PM






Hi guys,

I have 2 dimensions:
location that has 2 level: branch, salesperson
time that has 4 levels: year, quarter, month, day

1 measure: sales

I am trying to do this:

With
Member measures.max_sales as 'Max(time.month.members, sales)'
Member measures.max_salesperson as '<a list of salesperson with Max(time.
month.members, sales)>'

select {measures.max_salesperson, measures.max_sales} on Axis(0)
{location.branch.members} on Axis(1)
from tSales

My problem is that I don't know how to get a list of salesperson with Max
(time.month.members, sales). I've tried using Topsum and Filter with no luck.

Any help is appreciated.
Thanks
Paul


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...-olap/200508/1

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.