SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Reporting Services Excluding Multiple records
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Baxter
Starting Member

United Kingdom
2 Posts

Posted - 03/07/2012 :  06:10:40  Show Profile  Reply with Quote
Hi,

I have recently been asked to change a report on reporting services that contains data totals. The report is a stored proc that generates totals and the dataset to be viewed. The request is to have another total row which excludes the top 3 records. The proc is order by desending records so the top 3 records will always be in the same rows in reporting services. Is their an easy way to exclude these rather than changing my back ground code.

Thanks,

Paul

sunitabeck
Flowing Fount of Yak Knowledge

5152 Posts

Posted - 03/07/2012 :  07:03:48  Show Profile  Reply with Quote
One thought that comes to mind is to use the RowNumber function in SSRS. You would use the same SUM expression, but instead of just using a field value, you would change it to an expression that equal to the field value if RowNumber is > 3.

I have not experimented with the RowNumber function, so....
Go to Top of Page

Baxter
Starting Member

United Kingdom
2 Posts

Posted - 03/07/2012 :  09:30:29  Show Profile  Reply with Quote
Thanks the issue is that I have two grouped X and Y, and the rownumber falls over
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000