Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
MSBI 49
#BI 39
BRH 39
SSRS 35
#MSBI 29
SQL Server 28
#SSRS 22
SSAS 22
#SQL Server 21
Reporting 19

Archive · View All
April 2010 8
May 2010 7
January 2013 6
November 2012 5
March 2012 5
July 2012 4
January 2012 4
October 2011 4
June 2010 4
February 2013 3

Some Random Thoughts

Overlapping Charts in SSRS using Range Charts

Mar 19 2012 2:49PM by Jason Thomas   

How fast time flies! Another new version of SQL Server has been launched and it seems like it was only a few days ago that SQL Server 2008 was released. Those days, I was mainly focussing on SSRS, and I can’t express in words how happy I was when I saw all the new features in SSRS 2008 and 2008 R2. Today, I was reading through a great post by one of my favourite bloggers, Hilmar Buchta on SSRS Bar Chart Tips and Tricks and this prompted me to add a chart tip of my own here – Overlapping charts in SSRS.

Overlapping charts in SSRS

A quick look into this requirement and many of the BI professionals would say that it is not possible to implement this chart in SSRS. Quite often we underestimate the power of SSRS (I myself didn’t know how to implement some of the charts that Hilmar mentioned in his post) and hence I feel it is important to share and increase awareness through blog posts and other mediums. Follow the instructions below to replicate this chart:-

1) Make a new report and use the query below to make a new dataset.

SELECT        '2009' AS Year, 'Q1' AS Quarter, 45 AS Sales
UNION ALL
SELECT        '2009' AS Year, 'Q2' AS Quarter, 30 AS Sales
UNION ALL
SELECT        '2009' AS Year, 'Q3' AS Quarter, 25 AS Sales
UNION ALL
SELECT        '2009' AS Year, 'Q4' AS Quarter, 50 AS Sales
UNION ALL
SELECT        '2010' AS Year, 'Q1' AS Quarter, 50 AS Sales
UNION ALL
SELECT        '2010' AS Year, 'Q2' AS Quarter, 30 AS Sales
UNION ALL
SELECT        '2010' AS Year, 'Q3' AS Quarter, 35 AS Sales
UNION ALL
SELECT        '2010' AS Year, 'Q4' AS Quarter, 60 AS Sales
UNION ALL
SELECT        '2011' AS Year, 'Q1' AS Quarter, 55 AS Sales
UNION ALL
SELECT        '2011' AS Year, 'Q2' AS Quarter, 50 AS Sales
UNION ALL
SELECT        '2011' AS Year, 'Q3' AS Quarter, 65 AS Sales
UNION ALL
SELECT        '2011' AS Year, 'Q4' AS Quarter, 75 AS Sales

2) Make a column chart and use Sales in the Data Values, Year in the Category and Quarter in the series.

Column Chart

3) Right click on the Year category group and check the category group name. Rename it to a user friendly name like Year as shown below

Change category group name 

4) Create a new calculated measure by adding a new data value and enter the code below

=Sum(Fields!Sales.Value, "Year")

Measure expression

5) Change the chart type of the new measure to Range Column. Ensure that the chart type of the Sales measure is still column. Also bring the Sales measure to the bottom as shown in the image below

Column and range chart

6) Change the color of the Range Column as Aqua (or any color you like) from Automatic, so that all bars of the range column have the same color.

Change color of Range chart

7) You can enable the data labels for the Sales measure and disable the legend for the new calculated measure. Now if you preview the report, you will get the required result.

Overlapping bar chart

You can use the same technique (with a little modification in the dataset query) to implement charts like shown below

Overlapping stacked charta

Hopefully, this post will help in getting your creative juices flow when you are faced with a tough SSRS chart requirement!

Tags: SSRS, MSBI, SQL Server, #BI, #SSRS, #MSBI, BI,


Jason Thomas
19 · 9% · 2987
8
 
0
Lifesaver
 
0
Refreshed
 
 
0
Incorrect



Submit

2  Comments  

  • They look great!

    commented on Mar 20 2012 11:49PM
    Paras Doshi
    16 · 10% · 3265
  • This is really interesting. Chart looks awesome :) Thanks for posting Jason!

    commented on Jun 13 2012 2:55AM
    Dattatrey Sindol (Datta)
    43 · 4% · 1333

Your Comment


Sign Up or Login to post a comment.

"Overlapping Charts in SSRS using Range Charts" rated 5 out of 5 by 8 readers
Overlapping Charts in SSRS using Range Charts , 5.0 out of 5 based on 8 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]