Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting top x rows from a cube

Status
Not open for further replies.

plsh

Programmer
Mar 5, 2003
118
ZA
Hi there,

Does anyone know how to return the top x rows from a cube. I can do it through a OWC pivottable or chartsspace but I need to do it programmatically.

Any help will be apreciated.
 
The TopCount function is what is used.

Code:
With
SET [Top 100 Products] AS 'Topcount(Product.Products.Members,100,Measures.Units)'

Select 
{Measures.Units} On Columns,
{[Top 100 Products]} On Rows
From CubeName


"Shoot Me! Shoot Me NOW!!!"
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top