Adding a Secondary Axis to a SSRS Chart

Home > Blogs > SQL Server > Adding a Secondary Axis to a SSRS Chart

Adding a Secondary Axis to a SSRS Chart

Like This Blog 8 Peter Avila
Added by July 15, 2013

What happens when you use the same scale to compare values that are actually in different scales?

Have a look at this chart that was generated using Reporting Services and notice that you can barely see the gold columns for the Average Sales values.


The data (see the table next to the chart) tells us that a scale ranging from 0 to 625,000 is needed to plot the Total Sales, while a scale ranging from 0 to only 10,000 would do for the Average Sales. Though Average Sales and Total Sales are on different scales, the chart plots them on one axis, leading to the tiny columns for Average Sales.

Learning Point: When a series in a chart is not measured on the same scale used for the other series in the chart, a secondary axis can make the chart easier to read.

Let’s put in a secondary axis for the Average Sales.

  1. In the report designer, right-click the data series on the graph (in our case, that will be the gold column in our column chart) and select Series Properties…
  2. Select Axes and Chart Area, then Secondary for either vertical or horizontal axes as needed (in our case, we will select Secondary under Vertical axis), and then click OK when done.
  3. Now when we preview the report, it’s a lot easier to see the Average Sales.
    Even though this gives us a clearer picture of the variations in the Average Sales, it’s a bit odd to see the gold columns side-by-side with the blue columns; it still looks a lot like they are on the same scale.Learning Point: When comparing series on different scales, using a different graphic representation for each series makes the chart clearer.
    Let’s change the gold column to a line.
  4. In the report designer, right-click the data series on the graph (in our case, that will be the gold column in our column chart) and select Change Chart Type…
  5. Select a new chart type for the series and then click OK when done; in our case, we’ll select the first line chart type.
  6. The chart looks much better now. It still shows us what the Average Sales does through the different Quarters together with what the Total Sales does, but with the different chart types, they don’t look so tied together anymore. It’s easier to see that they are on different scales.
    …and we can even make the gold line a bit thicker.
  7. In the report designer, right-click the line and select Series Properties…
  8. Select Border, then change the line width as desired, and then click OK when done; in our case, we’ll change the line width to 2.5.
  9. Much better!



Peter Avila
SQL Server Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

Agile Methodology in Project Management

0 153 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

JavaScript for C# Developers – September 24, 2014

0 487 3

Is JavaScript worth taking the time to learn if I’m a server-side .NET developer? How much of C# carries over to JavaScript? In this recorded video from Dan Wahlin’s webinar on September 24,2014, Dan answers these questions and more while also discussing similarities between the languages, key differences, and the future of JavaScript (ES6). If … Continue reading JavaScript for C# Developers – September 24, 2014

Detailed Forensic Investigation of Malware Infections – April 21, 2015

4 606 5

How does an investigator hunt down and identify unknown malware? In this recording of our IT Security training webinar on April 21, 2015, Security expert Mike Danseglio (CISSP / CEH) performed several malware investigations on infected computers and identify symptoms, find root cause, and follow the leads to determine what’s happening. He demonstrated his preferred … Continue reading Detailed Forensic Investigation of Malware Infections – April 21, 2015

Write a Comment

See what people are saying...

  1. Avatar ALEX

    Thank you!

  2. Avatar Vinod

    Is it possible to add more than 1 secondary axis to rdlc report?

  3. Avatar Sunanda

    I have a requirement to do the very same thing in SQL Server Mobile Reports. Can we do that?

  4. Avatar Srinivas

    SSRS :
    I have a chart report with two fields Assets and Liabilities (2 bars). on the same chart I want show another bar with the difference value between two fields.

  5. Avatar Ramiro MIllan

    Hi, I am trying to do something like this but, when I change one of my series, all of them change to line, I am using ssrs 2016 , already, can be this the problem?

  6. Avatar Alida Meira

    Hi, awesome article, thank you! Now if the primary axis shows values from 0 to 8000 and the secondary axis from -2- to 80, how can I get the primary and secondary axis 0 to be aligned?

  7. Avatar Dinesh Balaji

    Thanks for the beautiful article. it helps me lot.

    Dinesh Balaji.N

  8. Avatar santosh pandey

    Really great work Peter Avila. I have exactly the same requirment.Thanks alot…
    You are too intelligent, you grow with your this sharp mind.
    Thanks again

Share your thoughts...

Please fill out the comment form below to post a reply.