Thursday 21 january 2010
4
21
/01
/Jan
/2010
13:50
In SQL Reporting Services,
the Matrix control provides a crosstab view of data, similar in behavior to a PivotTable. Rows and columns will have intersecting points of data which is often useful in time based reporting.
Matrix components are great for visualizing data that might normally be exported to Excel, or in a Pivot Table. Year over year analysis is a good example. But if an analyst wants to view monthly
sales, year over year, then he'd need to add some custom sorting so the months line up as expected. Additionally, we don't want to add the values between years, we instead need to display a
difference in the totals, and perhaps in percentage growth (or decline).
To add a matrix
Open the client report definition (.rdlc) file in graphical design mode. In the Toolbox, click Matrix. Click the design surface of the report.
After the matrix is on the report, you can move it by pointing to the shaded border of the matrix and dragging it to a new location. When you first create a matrix, the matrix displays four cells.
The upper-left cell is the corner cell. You can use the corner cell to display a label for the matrix, or you can leave it empty. The upper-right cell is a column header, which can contain a field
or expression by which to group the data. The lower-left cell is a row header, which also can contain a field or expression by which to group the data. The lower-right cell contains an aggregate
expression for the detail data.
After you add a matrix, you can add fields to the matrix. Each cell in the matrix contains a text box by default. You can type any expression into any cell, or you can change the item within the
cell to another item (i.e. to Image ot Chart).
Each matrix on a report is associated with a dataset. If the report contains a single dataset, the matrix is automatically associated with that dataset when you place it on the report. If the
report contains multiple datasets, you must associate the matrix with the correct dataset.
Here I had taken Dataset for the Slaes on each Item for every year. the result of the Dataset is like
Item Year Sales
Item1 2007 150
Item2 2007 200
Item1 2008 180
Item2 2008 160
Item3 2007 510
Item3 2008 320

After Adding the Required Dataset set to the Matrix control, you need to set the Column Grouping and Row Grouping Fields for Cross tab

Add the required Fileds to Column Header, and Row Header in the Matrix Control and also the Aggregate Expression to display the Data. to set these fileds, Right clikc on the each textbox (i.e.
Header Group, Row group and Data), select the properties and set Fileds Name.
Here I added Year for Column Header, Item for Header, Aggregate function like Sum of the Sales to the Data textbox

Here, we can set the different Colours to each section of the Matrix control. select the every textbox and set the Colour font nad etc.. from its properties explorer, and see the preview of the
report.

Adding Total's to Cross tab
In the matrix control we can also add the Sub total to each Column on and Each Row.
It shows like Total Items Sales in the every Row, and it shows Total Sales for every Year.
Select the Column Header and right click on the Header, here you can get the Sub Total in the Right Click Context menu, do the same above for Row Header also.

After adding the Subtotal to the Matrix, see the preview of the report, it looks like below.

-- Advanced Matrix Control next...
By Balavardhan Reddy
-
Posted in: SSRS
28
Thanks for sharing this.
Looked for this everywhere, every other site assumed I new the basics! Thank you so much for patronising me.
<h1><strong><a href="http://www.wholesalebrandhandbags.com/handbags-gucci-handbags-c-1_15.html">Wholesale Gucci Handbags</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/handbags-chanel-handbags-c-1_5.html">Wholesale Chanel Handbags</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/handbags-dg-handbags-c-1_11.html">Wholesale D&G Handbags</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/wallets-coach-wallets-c-3_10.html">Wholesale Coach Wallets</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/wallets-lv-wallets-c-3_20.html">Wholesale LV Wallets</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/wallets-gucci-wallets-c-3_16.html">Wholesale Gucci Wallets</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/wallets-chanel-wallets-c-3_6.html">Wholesale Chanel Wallets</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/sunglasses-lv-sunglasses-c-24_29.html">Wholesale LV Sunglasses</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/sunglasses-gucci-sunglasses-c-24_28.html">Wholesale Gucci Sunglasses</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/sunglasses-chanel-sunglasses-c-24_25.html">Wholesale Chanel Sunglasses</a></strong><h1>
<h1><strong><a href="http://www.wholesalebrandhandbags.com/sunglasses-dg-sunglasses-c-24_26.html">Wholesale D&G Sunglasses</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/">Wholesale nfl jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/">wholesale jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/">wholesale football jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/">authentic jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nfl-jerseys-c-206">Wholesale nfl jersey</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nhl-jerseys-c-249">wholesale nhl jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nhl-jerseys-c-249">wholesale hockey jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nhl-jerseys-c-249">discount nhl jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nba-jerseys-c-168">Wholesale nba jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nba-jerseys-c-168">wholesale basketball jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/nba-jerseys-c-168">discount nba jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/mlb-jerseys-c-134">Wholesale mlb jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/mlb-jerseys-c-134">wholesale baseball jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/mlb-jerseys-c-134">discount mlb jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/ncaa-jerseys">Wholesale NCAA Jerseys</a></strong><h1>
<h1><strong><a href="http://www.wholesalesportjersey.com/custom-jersey">Wholesale Custom Jersey</a></strong><h1>
<h1><strong><a href="http://www.officialairmaxshop.com/">Nike Air Max</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/">Air Max</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/">Nike Air Max Shoes</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/">Air Max Shoes</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-2010-c-101.html">Nike Air Max 2010</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-95-c-124.html">Air Max 95</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-90-c-144.html">Air Max 90</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-ltd-c-140.html">Air Max LTD</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-tn-c-152.html">Air Max TN</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-skyline-c-159.html">Air Max Skyline</a></strong><H1>
<h1><strong><a href="http://www.officialairmaxshop.com/nike-air-max-classic-bw-c-155.html">Air Max Classic</a></strong><H1>
i cannot open the images after i click on it. any ideea ? I use internet explorer if this is matter. thanks
A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a good one.
seragam sekolah
pupuk organik
I need to read more on this topic...I admiring time and effort you put in your blog, because it is obviously one great place where I can find lot of useful info.
This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article
You got a really useful blog I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.
This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article.
Excellent post.I want to thank you for this informative read<a href=‘‘http://www.contractormortgagesuk.com/”>Contractor Mortgages</a>
Keep up your great work
Very nicely written post it contains useful information for me. I am happy to find your distinguished way of writing the post.<a href=‘‘http://www.contractormortgagesuk.com/”>Contractor Mortgages</a> Now you make it easy for me to understand and implement the concept. Thank you for the post.
Everything that physical activities ended up being tried or even manufactured during the renaissance? Good website! I truly love how it is nice on my eyes it is
<a href="http://www.paylesslighters.com">wholesale lighters</a>
That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here
pupuk organik
seragam sekolah
This is the suitable blog with regard to anyone which wants to find out concerning this matter. You realize so much it has the almost exhausting to fight along (not i always actually would want …HaHa). You definitely set a new whirl about a topic thats been discussing frequent. Great products, just great!
I am a big fan of Matrix component and I also believe that it can really prove a great visaulisation tool. Nice tutorial.
Nice one dude, will tell my friends about this.
Cheers, thanks.
I was just browsing for related blog posts for my project research and I happened to discover yours. Thanks for the excellent information!
thanks for this informative post.First time i visit this site and after reading this article i solve my full problem.
This is my first time i visit here. I found so many interesting stuff in your blog
jual celana
seragam sekolah
seragam
Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post.
There are some attention-grabbing cut-off dates on this post however My partner and i don’t recognize plainly view each heart to help soul. There may be quite a few validity period however I'll take maintain view till My partner and i check into it further. Fine post, thanks as well as we wish extra! Included in FeedBurner while effectively
I have seen your awareness about this theme when you post it and it really gives an informational message to us readers. I am hoping that you will continue writing this kind of blog. Thanks for sharing this information.
<a href="http://obatkuatperkasa.org/">pembesar penis</a>
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your posts
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine. Did you acquired lots of links and I see lots of trackbacks??
I think you have to improve a bit the design and usability of your blog.