Excel KPI Dashboards – Adding Micro Charts [Part 4 of 6]

Posted on September 10th, 2008 in Charts and Graphs , Featured , Learn Excel - 22 comments

This is 4th part of Creating Management Dashboards in Microsoft Excel 6 post series by Robert.

This 6 Part Tutorial on Management Dashboards Teaches YOU:

Part 1: Creating a Scrollable List View in The Dashboard

Part 2: Add Ability to Sort on Any KPI to the Management Dashboard

Part 3: Highlight Values Based on Percentile

Part 4: Add Microcharts to Management Dashboards

Part 5: Compare 2 Decision Parameters in the Dashboards Using Form Controls

Part 6: Show the Distribution of a Parameter using Box Plots

The Challenge – Adding Visualization to the Management Dashboard

In this final post on management dashboards with Microsoft Excel, we will show you how to add meaningful graphical visualization directly into our dashboard table. With scrolling, sorting and highlighting the dash-board already offers some interesting analytical features (see previous posts). But it is still displaying the data as pure numbers. That makes it difficult for the user to recognize the relative sizes of the values at a glance. Furthermore it is often necessary to communicate the relative position of the data compared to one or several other calculated or given values like the total average or a target.

The solution

dashboard-key performance indicator -excel-with-graphs

[click here to view larger size]

Inserting conditionally formatted bar-line-combination-charts directly into the dashboard table visualizes the shown data and enables the user to get an overview at a glance. The bars show the relative sizes of the corresponding values, the conditional formatting let us immediately identify which values are below target (red color) or larger than target (grey color) and the line makes it easy to see whether a value is above or below the total average.

Download the Excel file – KPI Dashboards with visualization

The Implementation

To implement the charts, we need some knowledge about creating and formatting special charts with Microsoft Excel. In my humble opinion, the by far best resource on charts with Microsoft Excel is Jon Peltier’s excel charts pages. All you have to know for our dashboard charts is brilliantly described on Jon’s website (follow the links below).

  1. Prepare the workbook for the new features (5 extra columns on the dashboard for the bar charts, additional rows on the data worksheet to define the targets and new columns on the calculation sheet).
  2. Insert 5 conditional formatted bar charts. Read Jon’s method to create a conditional formatted chart.

    excel-dashboard-graphs-howto

    Use the table on the dashboard as the data source for the chart and use the targets defined on the sheet “data” as the threshold whether a value is formatted red (below target) or grey (larger than or equal target).

  3. Calculate the total average on the calculation sheet for each KPI and add an average line to each of the bar charts by using an XY-scatter chart type. Read more on Bar line combo.

    The necessary calculations for the steps 2 and 3 can be found in columns Q to AQ of the sheet “calculation”.

  4. Format the charts to make only the bars and the average line visible (no axes, no grid lines, no data labels, no caption, no border or fill color of chart area and plot area). Like Albert Einstein said: “as simple as possible, but not any simpler.
  5. Adjust the charts on the dashboard to make them fit exactly to the corresponding cell ranges. One tip for this: Holding the ALT key pressed when resizing a chart will make the chart size auto-fit to the size of the cell range beneath it. That makes it easier to position the charts correctly.

    The bar charts already look exactly the way we want them to. But there is one undesirable effect: when scrolling up or down the table, the maximum scale of the horizontal axis changes and the bars seem to “jump” up or down.

    To avoid this, add two additional XY-scatter-series to the chart, representing the minimum and the maximum of the total data and assign them to the secondary axis. Furthermore add 2 additional bar series to the chart, again representing the minimum and the maximum of the total data and assign them to the primary axis. We thereby “force” both horizontal axes to be identical and stay the same when scrolling up or down. Since we do not want to display these dummy-series, format them with no line and invisible markers (XY-scatters) respectively with no fill color and no border.

  6. Finally update the caption beneath the table to explain the meaning of the line and the bar colors.

What is next?

Read the next part: Part 5: Compare 2 Decision Parameters in the Dashboards Using Form Controls


Learn how to create Excel dashboards.


| More
Subscribe for PHD Email updates and get a free excel e-book with 95 tips & tricks

Comments
James September 10, 2008

I’d be happy to see this post EVERY week!
Part 4 didn’t disappoint.

David September 10, 2008

What a wonderful series. I hope it continues. I have had fun adding the targets to the bar chart as we are often aiming for the target and want to see how we compare to it.

Thanks. I look forward to learning so much more!
David

prem mathew September 10, 2008

Simply fantastic series….makes a really professional dashboard tool…

Robert September 10, 2008

@James, David, prem mathew:

Thank you very much for your kind and encouraging comments! I greatly appreciate your feedback!

One further comment:

I sent a sneak preview of this post and the excel file to Fabrice Rimlinger (http://sparklines-excel.blogspot.com/) before Chandoo was publishing the post and the file.

Fabrice was kind enough to have a very close look on the file. He did some testing and pointed us to a little bug Chandoo and I haven’t seen.

Thanks to Fabrice’s feedback we were able to fix that issue before publishing and to deliver a clean and working solution to the readers of PHD.

Fabrice: thank you so much for your precious time and your extremely valuable inputs!

Merci beaucoup!

Fabrice September 10, 2008

Wicked !

Simple and elegant… I love it.

@ Chandoo & Robert : Terrific association, keep the good post coming.

Do not hesitate to ask me for early debugging or pre-release “constructive” critics… Allways a pleasure.

Salut !

I`ll keep you posted on Sparklines for XL upgrades.

DPizz September 11, 2008

Yes, this series was great! I would like to see more.

Justin September 11, 2008

Great stuff Roger!! Would love to see more of your work too.
(I for one am not afraid to leverage the excellence of others)

I might have missed something – Do you have a way returning to the original sort order?
Adding a sixth radio button, making the sort KPI calc reference column J in the data sheet does the trick.
Leaving column J blank works fine – I added a reference to the ‘No.’ field to keep it clean.

Robert September 12, 2008

Justin,

thank you very much!

No, you did not miss a thing. The version posted for download has no way to return to the original sort order (i.e. the order of the items on the data sheet). What you described in your comment is a simple and clever way of doing this.

Even better and more sophisticated would be an option button to sort the table by product names (texts in column D). The sorting algorithm described in post #2, however, is not working with texts.

Sorting texts is more complicated. As far as I know, there is no way to do this without array formulae. John Walkenbach offers an array-formula solution on Daily Dose of Excel:
http://www.dailydoseofexcel.com/archives/2006/10/11/dynamic-text-sorting/

See also Vivian’s comments on the second post of the series.

SpeedBall September 27, 2008

Hi Chandoo,

I have a list of colors that I would like to assign to each of the 56 color index in Excel…can that be done through vba?

Thanks

Robert September 27, 2008

@SpeedBall

you do not need VBA to change the color palette. You can modify the color palette using the menu Tools/Options/Color Tab, select a color and use the button Modify to assign the color you want. But you would have to do this one color after the other…

If you don’t want to do this manually you could use VBA code as well, e.g.

ActiveWorkbook.Colors(1) = RGB(255, 0, 0)

etc.

Deep October 7, 2008

Hey,

……..ur work left me spellbound…….gr8 job…this kind of work should be a great thing for excel crazy like me. Keep on the great job !!

John October 30, 2008

WOW!

Brian October 30, 2008

Hi all! Most of this is new to me, so I apologize if this is elementary: My XY scatter line for average (or Min/MaxXY) doesn’t stretch all the way across my graph as in the sample file. What have I done wrong? (or not yet done)

Robert October 30, 2008

Brian,

thanks for your comment and question.

You have to manually set the axis scale of the secondary vertical axis (minumum = 1, maximum = 10), otherwise the autoscale will set the minimum to 0 and the maximum to 11 and the lines will not stretch all the way.

Robert October 30, 2008

Brian,

I forgot: there is no need to apologize. I guess you are one of the few who are rebuilding the dashboard from scratch. I think this is the best way to learn these techniques by heart and get the most out of it, even if it is time-consuming and maybe even exhausting sometimes.

I would like to encourage you to keep on doing this. Whenever you have questions on the KPI dashboard series or the dashboard revisited posts, please do not hesitate to come back. I am happy to help wherever I can.

smoe February 22, 2009

thank you so much!! this tutorial helps a lot!

RSS feed for comments on this post. TrackBack URI

Leave a comment

   Name (required)

   E-mail (required, never displayed)

   URL


If you have a question, please ask in the forums

Recommended Excel, Charting, VBA books