Solved

Can you do a page break dependent on whether a group is expanded in SSRS 2008?

Posted on 2013-01-14
3
721 Views
Last Modified: 2013-01-22
I have a report that has a page break at group level (person). I've just received a request to amend the report so that it has another group level (department) now so that we can get overall stats per department.

I want the report to initially just display the department and person without person detail so I've set visibility on the detail row group to be hidden with a toggle on the department name (as they will either want it printed in expanded form with detail row group details or summarised by person by department).

The problem I'm getting is that the page break is still being applied at person level so I get a page with one person line on it irrespective of which department they're in. I only want the page break by person if the report has the detail row group expanded. Is there a way of only applying page breaks on whether a group's detail has been expanded please?
0
Comment
Question by:Grffster
3 Comments
 
LVL 6

Accepted Solution

by:
liija earned 500 total points
ID: 38800386
It's not possible to have conditional page breaks.

However, you could add two tables on your report.
- Add a new parameter for the user to choose - what is the detail level (department/employee)
-> You show or hide the two tables depending on the parameter value
- The other one has page breaks on employee, other one on department level
- You could also add a link to the department - which would show the employee-level report/table

Having two tables with same cols and rows increases of course maintenance work - but that's one approach.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question