Solved

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

Posted on 2013-01-14
3
714 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

How to increase the row limit in Jasper Server.
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now