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

sql server reporting services

group:

TOP 10


TOP 10 aaron_kempf NO[at]SPAM hotmail.com
12/17/2004 2:46:06 PM
sql server reporting services:
is there any way to only show the first 10 items in a group?

I can't really do it on the SQL side

aaron

Re: TOP 10 kbr
12/17/2004 4:27:02 PM
You can do this by adding a "filter" to the group to only get "TOP N"
based on some field. Not sure on the exact semantics, but this should
be close:

Right-click on the group cell, and select "Edit Group". Then go to the
"Filters" tab, choose the DataSet Field or expression you want to
evaluate; then choose "Top N" as the Operator...then in the Value
field, enter the number you want (i.e., 10 if you want the TOP 10).
Re: TOP 10 Robert Bruckner [MSFT]
12/17/2004 8:11:36 PM
Make sure to use =10 (which evaluates to an integer) instead of the string
constant 10 as filter value of the TopN filter.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Re: TOP 10 aaron_kempf NO[at]SPAM hotmail.com
12/20/2004 4:37:56 PM
thanks guys, i am so glad i can do this in RS, instead of needing to do this
on the DB side!!!!





[quoted text, click to view]

Re: TOP 10 Robert Bruckner [MSFT]
12/20/2004 4:45:47 PM
Yes, it may be more convenient to do filtering in the report, but you have
to consider that the RS processing engine has to retrieve all the data and
then apply the filter. This is less efficient than filtering the data on the
database and therefore not transmitting and processing them.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Re: TOP 10 aaron_kempf NO[at]SPAM hotmail.com
12/20/2004 4:58:01 PM
yeah... better than that changing my report to be a union with a different
TOP 10 clause for each section tho

I am using MDX and i tihnk that it would be hard to do this via MDX

MDX/OLAP is fast enough anyways, who cares if it's pulling 15 records and
showing 10 right?

-aaron


[quoted text, click to view]

Re: TOP 10 Robert Bruckner [MSFT]
12/20/2004 5:11:44 PM
Yes, filters in RS are very useful for your scenario. However, they would
not make sense if the query retrieves one million rows and then filter for
the top 10 rows in the report.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Re: TOP 10 aaron.kempf NO[at]SPAM gmail.com
12/22/2004 5:50:11 PM
rob;

I am having the darnedest time getting this to work.

I want to show the top 10 projects for each project type. I go to
'edit group' and I set the TopN clause =10

This notation basically works-- i just can't figure out how to do it
for each gorup.

Doing this via MDX keeps on crapping out and I'm not going to change my
MDX at this stage.

I need to be able to filter for the top 10 for each projectType.. It's
just not working.. I've seen other posts that look like the same
diagnosis..

I just dont' understand what I'm doing wrong.









[quoted text, click to view]
Re: TOP 10 aaron.kempf NO[at]SPAM gmail.com
12/22/2004 6:04:14 PM
rob;

I am having the darnedest time getting this to work.

I want to show the top 10 projects for each project type. I go to
'edit group' and I set the TopN clause =10

This notation basically works-- i just can't figure out how to do it
for each gorup.

Doing this via MDX keeps on crapping out and I'm not going to change my
MDX at this stage.

I need to be able to filter for the top 10 for each projectType.. It's
just not working.. I've seen other posts that look like the same
diagnosis..

I just dont' understand what I'm doing wrong.









[quoted text, click to view]
AddThis Social Bookmark Button