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.

m1


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  


m2

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

m3 m4

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

m5


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.


m6 m7

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.

m8 m9

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

m10


-- Advanced Matrix Control next...

By Balavardhan Reddy - Posted in: SSRS
Write comment - See the 28 comments
Home

Comments

Great blog! The information you provide is quiet helpful, why I was not able to find it earlier. Anyways I’ve subscribed to your feeds, keep the good work up.
Comment number1 posted by dissertations blog on 20/02/2010 at 10h34

Thanks for sharing this.

Comment number2 posted by logo design on 21/04/2010 at 15h40

Comment number3 posted by payday loans vancouver on 07/05/2010 at 19h55

Looked for this everywhere, every other site assumed I new the basics! Thank you so much for patronising me.

Comment number4 posted by Tom on 02/02/2011 at 16h43

<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>

Comment number5 posted by fiona on 14/04/2011 at 10h05

i cannot open the images after i click on it. any ideea ? I use internet explorer if this is matter. thanks

Comment number6 posted by email marketing software on 05/07/2011 at 00h29

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

Comment number7 posted by pupuk organik on 17/11/2011 at 06h27

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.

Comment number8 posted by makeityourring diamond engagement rings on 22/11/2011 at 18h21

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

Comment number9 posted by makeityourring diamond engagement rings on 03/12/2011 at 06h31

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.

Comment number10 posted by obat asam urat on 05/12/2011 at 15h47

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.

Comment number11 posted by makeityourring diamond engagement rings on 09/12/2011 at 05h25

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

Comment number12 posted by Azare Raaj on 24/12/2011 at 13h54

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.

Comment number13 posted by Azare Raaj on 26/12/2011 at 13h25

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>

Comment number14 posted by Cigarette Lighters on 26/12/2011 at 16h09

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

Comment number15 posted by pupuk organik on 06/01/2012 at 08h26

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!

Comment number16 posted by Century 21 Broker Properti Jual Beli Sewa Rumah In on 07/01/2012 at 02h43

I am a big fan of Matrix component and I also believe that it can really prove a great visaulisation tool. Nice tutorial.

Comment number17 posted by skip hire on 11/01/2012 at 07h14

Nice one dude, will tell my friends about this.

Comment number18 posted by Muay Thai on 14/01/2012 at 19h38

Cheers, thanks.

Comment number19 posted by Muay Thai on 14/01/2012 at 19h39

I was just browsing for related blog posts for my project research and I happened to discover yours. Thanks for the excellent information!

Comment number20 posted by jual celana on 17/02/2012 at 11h34

thanks for this informative post.First time i visit this site and after reading this article i solve my full problem.

Comment number21 posted by buckle on 17/02/2012 at 15h53

This is my first time i visit here. I found so many interesting stuff in your blog

jual celana

seragam sekolah

seragam

 

Comment number22 posted by jual celana on 19/02/2012 at 06h58

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.

Comment number23 posted by 1,3 dimethylamylamine buy on 06/03/2012 at 10h02

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

Comment number24 posted by cara membuat blog on 12/03/2012 at 01h41

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>

Comment number25 posted by pembesar penis on 15/03/2012 at 08h09

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

Comment number26 posted by baju distro on 15/03/2012 at 08h47

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??

Comment number27 posted by band post hardcore bandung on 15/03/2012 at 08h48

I think you have to improve a bit the design and usability of your blog.

Comment number28 posted by aput on 16/03/2012 at 04h39

My Blog

Profile

  • Balavardhan Reddy
  • Balavardhan Reddy Narani
  • Male
  • Life ASP.Net SQL Server Good Quotes SSRS
  • Software Eng.. From India..

Categories

Random pictures

  • 4.jpg
  • 3.gif
  • 2.jpg
  • 2.gif
  • 5.jpg

Recent comments

Recommend

Links

Create your blog for free on over-blog.com - Contact - Terms of Service - Earn Royalties - Report abuse - Most commented articles