Topcount within second level
- From: "ChrisBusch" <ChrisBusch@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Jun 2005 09:04:01 -0700
I need to return the top 10 vendors within each state on the row axis
along with year on ther column axis.
This query returns the top 10 vendors nationally:
SELECT [TimePeriod].[Year].Members ON COLUMNS,
TOPCOUNT({[Vendor].[Vendor Name].Members},10, [Measures].[Amount]) ON ROWS
FROM APData
This was my attempt to return the top 10 for each state, but fails with a
syntax error.
SELECT [TimePeriod].[Year].Members ON COLUMNS,
[State].[State Code].Members, TOPCOUNT({[Vendor].[Vendor Name].Members},10,
[Measures].[Amount]) ON ROWS
FROM APData
Any help would be greatly appreciated.
Chris Busch
cbusch@xxxxxxxxxxxxxxxx
.
- Follow-Ups:
- RE: Topcount within second level
- From: ChrisBusch
- Re: Topcount within second level
- From: Deepak Puri
- RE: Topcount within second level
- Prev by Date: Re: Using MSOLAP throught WEB, but with IIS and Analysis Services on different machines
- Next by Date: RE: Dynamic Security: how to detect Missing members in 64bit AS2K
- Previous by thread: Using MSOLAP throught WEB, but with IIS and Analysis Services on different machines
- Next by thread: Re: Topcount within second level
- Index(es):
Loading