Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
SSRS Exercise

SSRS Exercise

Ratings: (0)|Views: 478|Likes:
Published by santhosh1212

More info:

Published by: santhosh1212 on Jul 04, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

07/08/2014

pdf

text

original

 
Exercise Document on Reporting Services
SymIndia
SQL SERVER YUKON
EXERCISES ON REPORTING SERVICES
PRE
-
REQUISITES
Open Business Intelligence Development Studio and create a project byselecting “Report Server Server”.
Create a Data Source with
AdventureWorks
Database and Windows NTAuthentication
In the Project properties set the target path ashttp://localhost/reportserver
I DESIGNING REPORTSEXERCISE1:
L
EARNING
 
POINTS
:
Embedded Image
Matrix Report
Drilldown
Grouping and Sorting
Use of Text Box
Toggle Grouped items on the report
S
TEPS
:
Create a data set with the Query below
Which retrieves Product Category, sub category, Year, Quarter, Monthwise sales from
ProductSubCategory, SalesOrderHeader,SalesTerritory, SalesOrderDetail
tables in AdventureWorks databasefor period of 2002 and 2003:
 
1
 
Exercise Document on Reporting Services
SymIndia
SQL SERVER YUKON
SELECT PC.Name AS ProdCat, PS.Name AS SubCat, DATEPART(yy,SH.OrderDate) AS OrderYear,'Q' + DATENAME(qq, SH.OrderDate) AS OrderQtr,DATENAME(mm, SH.OrderDate) AS OrderMonth, ST.Name as Country,SUM(SO.UnitPrice * SO.OrderQty) AS SalesFROM PRODUCTION.ProductSubCategory PS INNER JOINSALES.SalesOrderHeader SH INNER JOINSALES.SalesOrderDetail SO ON SH.SalesOrderID =SO.SalesOrderID INNER JOINSALES.SalesTerritory ST ON SH.TerritoryID =ST.TerritoryID INNER JOINPRODUCTION.Product P ON SO.ProductID = P.ProductIDONPS.ProductSubCategoryID = P.ProductSubCategoryIDINNER JOINPRODUCTION.ProductCategory PC ONPS.ProductCategoryID = PC.ProductCategoryIDWHERE (SH.OrderDate BETWEEN '1/1/02' AND '12/31/03')GROUP BY DATEPART(yy, SH.OrderDate), PC.Name, PS.Name, 'Q' + DATENAME(qq,SH.OrderDate), DATENAME(mm, SH.OrderDate), ST.Name,PS.ProductSubCategoryID
Using Toolbox, Add a Matrix to Design Layout
Add ProdCat, SubCat fields to row group in the Matrix
Add OrderYear, OrderQtr, OrderMonth, Country fields to column group inthe Matrix
Add sales field to Details group in the matrix
For all the rows and columns, Change the Name property appropriately.
G
ROUPING
F
IELD
I
NITIAL
VISIBILITYP
ROPERTY
W
HETHER 
 
CAN
 
BE
 
TOGGED
 
BY
 
ANOTHER 
P
RODUCT
I
TEM
 
AND
 
IF
 
YES
,
THE
EPORT
I
TEM
ProductCatVisible-SubcatHidden ProductCatOrderYearVisible-
2
 
Exercise Document on Reporting Services
SymIndia
SQL SERVER YUKON
OrderQtrHiddenOrderYearOrderMonthHiddenOrderQtrCountryHidden OrderMonth
SORTING
SORT the
“OrderQtr”
by Ascending.
A
DD
 
BACKGROUND
P
ROPERTY
S
UB
 
PROPERTY
V
ALUE
Prerequisite taskDrag and dropImage item fromToolboxBackground Image
Source
Value
Embedded
Chose Embeddedimage using theimage Wizard
Note: Delete theimage controlplaced on the reportlayout, after you setthe BackgroundSource and Value
FORMAT
FORMATVALUE
3

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
santhosh1212 liked this
santhosh1212 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->