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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top 10 List?

Status
Not open for further replies.

katams

Programmer
Joined
Jun 4, 2001
Messages
8
Location
US
I have a region dimension and geography dimension that I'm trying to generate a top 10 list from...
Example:
Region 1 Top City 1 Top Zip 1
Top Zip 2
Top City 2 Top Zip 1
Top Zip 2
Top Zip 3...
Region 2 Top City 1 Top Zip 1
etc...

Geography has the levels state, city and zip. Any ideas?

Thank you in advance!

 

Hi, This MDX-statement should solve your problem:


select
{ [Measures].[YOUR_MEASURE] } on columns,
TOPCOUNT (CROSSJOIN({ [region].[all region].children }, { [geography].[zip].members }),10,[Measures].[YOUR_MEASURE])
on rows
from YOUR_CUBE


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top