How to Name Worksheets When Exporting SSRS reports to Excel
How to Name Worksheets When Exporting SSRS reports to Excel
Let’s say we have the following report that shows total sales by product category by territory:
When we export this report to Excel, we’d like each territory to appear in its own worksheet and each worksheet named after its territory:
How do we make this work? Easy! 1) Put every group on its own page, and 2) name each page using the same field the group uses.
Step 1: Put each group on its own page
To put each group on its own page, open the group’s property window.
Then, in the Page Breaks category, put a check mark in the Between each instance of a group check box.
Click OK to complete this step.
Step 2: Name the pages of the group
With the group selected in the Row Groups panel, press F4 to open the Properties window.
Next, expand the Group property and look for the Page Name sub-property. From its dropdown, select <Expression…>.
In the Expression dialog, select the Fields category and then double-click on the same field the group uses; in this case that would be the Territory field.
A reference to the field appears in the window at the top of the Expression dialog.
Click OK and that’s it! Now, when you export the report to Excel, the worksheet names will match the group names!
Enjoy!
Peter Avila
SQL Server Instructor – Interface Technical Training
Phoenix, AZ
You May Also Like
A Simple Introduction to Cisco CML2
0 3698 0Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2
Configuring Windows Mobility Center and How to Turn it On and Off
1 1411 1Video transcription Steve Fullmer: In our Windows training courses, we often share information about the Windows 8.1 Mobility Center. Mobility Center was introduced for mobile and laptop devices in Windows 7. It’s present and somewhat enhanced in Windows 8. Since we don’t have mobile devices in our classrooms, I decided to take a little bit … Continue reading Configuring Windows Mobility Center and How to Turn it On and Off
OSPF Adjacency Troubleshooting Solution – Getting Close to the OSPF adj
0 247 1In this video, Cisco CCNA & CCNP instructor Mark Jacob shows how to troubleshoot OSPF Adjacency issues by showing the distance between routers with the show ip ospf neighbor command.
See what people are saying...