dbTalk Databases Forums  

MDX Range Queries

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


Discuss MDX Range Queries in the microsoft.public.sqlserver.olap forum.



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

Default MDX Range Queries - 08-29-2005 , 03:50 PM






Hi,

I have a cube with multiple large dimensions.

We have a web front end that displays data. The web page diplays only 200
rows at a time. When the user selects next page, we will have to build
another MDX statement and bring the data from the cube.

Here is the problem that i have mostly with big dimenions when they are
selected as a ROW dimension. Displaying the first 200 rows based on the
selection criteria is straight forward. I do this using "Top N".

Now when they select the 2nd page, i do not know how to build the MDX
statement that brings me the 201 - 400 sales persons with highest sales.

In essense, how do i implement ranges with MDX?

Any help ig grately appreciated.

Thanks,

Sam.

Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: MDX Range Queries - 08-29-2005 , 04:33 PM






CREATE SET Sales.OrderedSalesPeople AS Order(SalesPerson.MEMBERS,
Measures.[Unit Sales])
or
CREATE SET Sales.OrderedSalesPeople AS TopCount(SalesPerson.MEMBERS, 400,
Measures.[Unit Sales])

and then

SELECT Subset(OrderedSalesPeople, 200, 399) ON 0 FROM Sales

--
==============================*=================== =
Mosha Pasumansky - http://www.mosha.com/msolap
Analysis Services blog at http://www.sqljunkies.com/WebL*og/mosha
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==============================*=================== =
"Prasad" <Prasad (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have a cube with multiple large dimensions.

We have a web front end that displays data. The web page diplays only 200
rows at a time. When the user selects next page, we will have to build
another MDX statement and bring the data from the cube.

Here is the problem that i have mostly with big dimenions when they are
selected as a ROW dimension. Displaying the first 200 rows based on the
selection criteria is straight forward. I do this using "Top N".

Now when they select the 2nd page, i do not know how to build the MDX
statement that brings me the 201 - 400 sales persons with highest sales.

In essense, how do i implement ranges with MDX?

Any help ig grately appreciated.

Thanks,

Sam.



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.