2 business intelligence with the world’s most popular business productivity suite and most widely...

38
Advanced Report Authoring Techniques with Microsoft SQL Server 2008 Reporting Services Roger Sanborn Development Manager Microsoft Corporation SESSION CODE: BIO302

Upload: milo-goodwin

Post on 01-Jan-2016

215 views

Category:

Documents


3 download

TRANSCRIPT

Advanced Report Authoring Techniques with Microsoft SQL Server 2008 Reporting Services Roger SanbornDevelopment ManagerMicrosoft Corporation

SESSION CODE: BIO302

2

Microsoft Business Intelligence

Business Intelligence with the world’s most popular business productivity suite and most widely deployed information platform

IT management & developer

productivity

Empower Your People

Improve Organizational Effectiveness

Increase IT Efficiency

Trusted, scalable & secure

Alignment, accountability &

ownership

Collaborative across your value chain

Familiar interface & tools you own today

Self-service access & insight

The Tablix

Tablix structure

Table Matrix

BodyRow grouping area

Corner Column grouping area

Body(required)

Territory

Repeating groups

Microsoft Confidential

This is the Territory group. It is the parent of the SalesPerson group.

SalesPersonSalesPerson

GroupsIndent = child group

Group header row repeats

Groups repeating on both axes

YearTerritory

SalesPerson

Column GroupsRow Groups

2003 2004 Total

Canada 3,216 1,807 5,022

Southwest 6,442 2,962 9,404

Accessories 98 51 149

Bikes 7,741 4,050 11,791

Clothing 277 118 395

Components 1,541 549 2,090

Total 9,657 4,769 14,426

Advanced structures

YearTerritory

Category

Column GroupsRow Groups

Adjacent (side-by-side) groups

Adjacent groups are not indented

Territory group

Category group

2003 2004 Total

Territory Canada 3,216 33% 1,807 38% 5,022

Southwest 6,442 67% 2,962 62% 9,404

Category Accessories 98 1% 51 1% 149

Bikes 7,741 80% 4,050 85% 11,791

Clothing 277 3% 118 2% 395

Components 1,541 16% 549 12% 2,090

Total 9,657 4,769 14,426

Advanced calculations

Microsoft Confidential

1. Insert column to the right, inside the group2. Set expr: =Sum(Fields!Sales.Value)/Sum(Fields!Sales.Value,"Year")3. Format as %

Percent of Total

Advanced calculations

Microsoft Confidential

Top N

Use the Filters page to restrict which Categories are displayed

2003 2004 Total

Territory Canada 3,216 33% 1,807 38% 5,022

Southwest 6,442 67% 2,962 62% 9,404

Category Accessories 98 1% 51 1% 149

Bikes 7,741 80% 4,050 85% 11,791

Clothing 277 3% 118 2% 395

Components 1,541 16% 549 12% 2,090

Total 9,657 4,769 14,426

Creating a Tablix

DEMO

Connecting to new data sources

New and improved sources for dataSharePoint listsSQL AzurePowerPivotImproved SQL query designer

Create a query

DEMO

Report control through expressions

Aggregates of AggregatesExpressions now support nesting of aggregate functions

Example: Average Monthly Sales=Avg(Sum(Sales, "Month"), "Year")

Enables “visual totals” scenariosAggregates respect group filters

6 200Total

2 2Jan

4 4Feb2009

Sales (filtered) Sales

Lookup3 new functions for finding matching values or sets of matching values in another dataset

LookupLookupSetMulti Lookup

Session VariablesPersist data across report renderings and page changes through Read/Write Report Variables

Lookup and aggregates

DEMO

Controlling the reports output

Reset Page Number on Group

• Reset page number for each new group instance.

• Get current page and total page count for each group, and overall

Dynamic page breaks

Use expressions to determine what renderer is being usedDynamically disable/enable page breaks

Example, disable page breaks if exporting to Excel. Otherwise, enable them:

Excel Renderer Worksheet Tab Naming

Renderer-based expressions

Control layout and write expressions that consider renderer formatExample, dynamically disable drillthrough expressions for non-interactive renderers and enable them for interactive ones

Bottom-to-Top Text Rotation

New text orientation option provides more flexibility to your report layouts

Exports report data as Atom data feedsEach leaf data region has one or more data feedsAllow clients that understand Atom feeds to consume data from SSRSAnother way to use the data already contained in reports!

Report data feeds

How feeds are exposedThere are three data feeds exposed from this report. Two for each Tablix and one for Chart.Chart, Tablix, Gauge, and Map all expose data feeds

1

2

3

Peer dynamic membersPeer dynamic members in a Tablix or Chart are exposed as unique feeds.This is the one situation where one Tablix or Chart may result in multiple feeds.Consider this example which shows peer “Territory” and “Year” members on the Tablix column hierarchy – each of these will be its own data feed.

Output features

DEMO

Resources

www.microsoft.com/teched

Sessions On-Demand & Community Microsoft Certification & Training Resources

Resources for IT Professionals Resources for Developers

www.microsoft.com/learning

http://microsoft.com/technet http://microsoft.com/msdn

Learning

Complete an evaluation on CommNet and enter to win!

Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st

http://northamerica.msteched.com/registration

You can also register at the

North America 2011 kiosk located at registrationJoin us in Atlanta next year

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.