all groups > sql server reporting services > december 2004 >
You're in the

sql server reporting services

group:

Top 10 MDX


Top 10 MDX Carlos Krauss
12/21/2004 3:33:01 PM
sql server reporting services:
I am trying to get the Top N sales for the customers for a datawarehouse
using the following MDX:

="SELECT {[Measures].[Net Sales],[Measures].[Qty Lb]} ON COLUMNS,
TopCount(ORDER({[CustomerSalesPerson].[Name].Members},[2004], DESC),"&
Parameters!TopCustomer.Value &") ON ROWS,
{[TimeByMonth].[2004].[1]:[TimeByMonth].[2004].[12]} ON PAGES FROM
[CustomerTopSales]"

having a parameter to determinate the Top N.

This works fine when my dimension (CustomerSalesPerson) has one level in the
report, but when i want to show two levels of my dimension, it counts Top N
considering both levels, like the following will be Top 5 when showing only 2
customers:

Customer 1
Sales Person 1
Sales Person 2
Customer 2
Sales Peron 3

How can i made a Top N using the first level of the dimension?

Any help

Thanks
Re: Top 10 MDX Jeff A. Stucker
12/22/2004 10:25:10 AM
You'll have better luck asking that question over here:

microsoft.public.sqlserver.olap


--
Cheers,

'(' Jeff A. Stucker
\

Business Intelligence
www.criadvantage.com
--------------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button