Limiting amount of rows shown in a SQL Report
Hi There, I have made a report which summarises my SharePoint 2010 blog posts. It works nicely, however it returns every blog post (as expected in its current state). Is there a way I can limit this to only show say 10 results? In my case, I want to see the last 10 blog posts (so will be looking at a date) Thanks in advance! RobertRob Hardy
March 23rd, 2011 6:40pm

Just to add, I made this report in Report Builder 3.0Rob Hardy
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2011 7:05pm

if you are using a sql server data source for your report you can use the top function. The order your dataset by the data field in descending order to get 10 newest rows. example: select top 10 * from blog_table order by blog_date desc
March 23rd, 2011 7:08pm

i dont use report builder but I'm sure there is a filter option. There should be a TOP N filter to limit the rows.
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2011 7:21pm

Hi There, I am using the 'Microsoft SharePoint List' data source type. So for this, I just enter the URL, rather than a SQL Query. Any ideas??Rob Hardy
March 23rd, 2011 7:27pm

Any ideas?Rob Hardy
Free Windows Admin Tool Kit Click here and download it now
March 25th, 2011 12:35pm

This feture is not available out of box with SSRS Regards,Phani Note: Please vote/mark the post as answered if it answers your question/helps to solve your problem.
March 25th, 2011 12:41pm

Hi, Based you description, I recommend that you design your report by using the following steps, please see: 1. Add a group for the date filed named the DateGroup. 2. Set an expression for the row visibility as follows: =IIF(RowNumber("DateGroup ")>10,TRUE,FALSE) Thanks, Ai-Hua Qiu Ai-hua Qiu[MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2011 1:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics