We use cookies essential for this site to function well. Please click to help us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy & Cookies Policy.

Show details

How to Create Stunning and Interactive Dashboards in Excel?

kaustubh 10 Sep, 2021
7 min read

This article was published as a part of the Data Science Blogathon

Introduction

I have been using Pandas with Python and Plotly to create some of the most stunning dashboards for my projects. In recent times, I have switched to learning Excel as it was a prerequisite in every company I had to apply to. I was not aware of the capabilities of this tool though I had only used it for normal budgeting and article tracking.

Excel is indeed a powerful tool that doesn’t require core coding (until you are not getting into VBAs). This means that any business or nontechnical individual can gather insights from data using Excel. A dashboard is a consolidated view of visual elements that convey knowledge about the dataset. It supports data validation in the form of filters and sorting methods.

In this article, I will show you how to create an interactive and stunning dashboard in Excel. We will look at creating pivot tables, designing the dashboard layout, adding various charts to the dashboard, unifying the charts into one theme, and then adding slicers/filers that control all the charts. Here is the preview of what you will be able to build at the end of this article:

Dashboards in Excel
Image by Author

Dataset for the Dashboard

The problem statement we will be dealing with in this article is for the sales data of a hypothetical company. Let’s call this company “Analytics Vidhya International” that sells its courses worldwide. The following data is available with us: order number, purchase date, customer Id, customer name (companies in this case), salesperson, sales region, course type, price, quantity, and revenue. Here is the snapshot of the data:

dataset | Dashboards in Excel

Creating Visualizations for the Dashboard

For the given sales data, different types of plotting can be performed. We will create charts to analyze:

  1. Total sales per month in terms of revenue
  2. Total sales by region
  3. Sales by employee
  4. Course share
  5. Customer/Company spending

Note: For the first chart, I will explain the whole pivot table process and for later charts, I will directly jump into making visualizations.

Total Sales per month

The total sales of the company are given in the “Revenue” column which is a calculated column for the product of “Price” and “Quantity”. The “Date” column has the correct date format with a date range from 1st Jan 2018 to 16th Oct 2019.

To find the total sales per month, we need an aggregation of revenue for every month. Therefore, we will create a pivot table. A pivot table can be created by selecting the whole data range, navigating to the Insert tab, and then the PivotTable option on the left.

sales per month | Dashboards in Excel

This will open up a new sheet with Pivot options on the right. Simply drag the “Dates” field into the rows section and the “Revenue” field into the values section. This will populate a table with aggregated revenue for each month of the given year. You can remove the quarter’s field from the dates field in the row section so that you get output for all months of the year. This will look like this:

sales | Dashboards in Excel

Now, let’s create a line plot or Pivot chart for this pivot table. Select the whole pivot table, navigate to the Insert tab and click on the charts option arrow. Here you can select any type of line plot.  

insert | Dashboards in Excel

We just plotted our first visualization in Excel! We can customize all elements of this chart but, for now, let’s plot the remaining charts, and then we will unify them into one theme.

Total Sales per region

For every new plot, you need to create a new pivot table. Therefore, repeat the process of creating a pivot table and navigate to the new pivot table sheet. Now, for sales by region, a Map plot would convey more information about the actual region from the country.

The Map plot is only supported for newer versions of Excel, i.e, 2019 and office 365. Simply, drag the “Region” field into the column section and the “Revenue” field into the values section. For some reason, we cannot plot the Map plot directly from a Pivot table. Therefore, you need to copy the pivot table, paste it into the same sheet, and then create the reference of the values to the pivot table values.

Pivot table | Dashboards in Excel

To create the Map plot from these values, simply select these values, navigate to the Insert tab and then click on the Map icon in the charts section.

chart title

Sales by Employees

For this, we will create a Pivot table with columns as “Sales Person”, rows as “Date” year, and values as “Revenue”. Next, create a pivot bar chart for this table.

sales by employee | Dashboards in Excel

Course share

We want to know which course types are being purchased most by the company out of all the available ones. For this, we will plot a pie/donut chart. In the pivot table, drag “Course_Type” in the rows section and “Revenue” in values. To plot the donut plot, click on the pie icon in chart options and select the donut plot at the end.

course | Dashboards in Excel

Tip: To control the size of the hole of the donut plot, right-click on any section of the donut, select the “Format Data Series” option, and then you get the slider for donut hole size.

Customer Spending

Now, we will plot a horizontal bar chart to analyze the customers (companies in our case) who are spending/purchasing more and more courses from the company. These customers should not churn in the upcoming quarters and they can be provided with some additional benefits sot that they continue to make transactions.

Drag the “Revenue” in the values section and “Customer Name” in the rows section. Also, sort the values in ascending order so that the horizontal bar looks good.

customer spending | Dashboards in Excel

Designing the Dashboard in Excel

All the required visualizations are created and now we are ready to design the dashboard. Follow these steps:

  1. Create a new sheet in the workbook
  2. Goto to page layout, and under the sheet options, uncheck the Gridlines view checkbox.
  3. Next, click on Background and choose a background image. You can search for images on Unsplash or create a fresh dashboard layout in Canva.
  4. Now, you can add the title and subtitles to the report by going to the insert tab and selecting the text box option at the right. You can also change the font color, text, and other text properties as provided in the MS word too.

After adding the background and the title text, it’s time to create the titled view of our dashboard. Insert a rectangle, fill the color as black, make it 60-70% transparent and remove the border colors. These boxes/tiles will be the base for our charts. Place them in an ordered collage manner. It would look like this:

dashboard

You can also add titles for all the tiles placed.

Adding Charts to Dashboard and Unifying theme

Now, to add the charts to their respective positions:

  1. Simply copy them from their pivot sheets and paste them into their tiles.
  2. You will need to adjust the size according to the tile size or modify the tile size to accommodate the charts.

For every chart to be in the same theme and immersive into the tiles made:

  1. You need to change the fill colour to none and the Border color to none. This can be done by navigating to the format tab.
  2. Change all text colors to white.
  3. Remove the unnecessary field buttons from charts by going to the PivotChart Analyse tab and then to the Field Buttons option to the right. Deselect all the choices there or choose the Hide all option.

The dashboard with all the charts placed and customizations applied should look like this:

Revenue dashboard

Adding Filters/Slicers to the Dashboard in Excel

Slicers are the select options that enable users to filter data by various categories. This is a very powerful way to show only the required data to the user. Now, we need to create such slicers such that selecting one option updates all the charts of the dashboard.

To achieve this, simply create a slicer for any of the charts placed.

  1. Select a chart
  2. Navigate to the Insert tab
  3. Click on the Slicers option in the Filters section
  4. Select the desired columns/fields for which you want to filter the data

Now, for slicers to update other charts as well,

  1. Right-click on the slicer
  2. Select Report Connections
  3. Select/Check all the pivot tables checkboxes

Boom! Your slicer choice will update all the charts on the dashboard! Do this for all the other slicers as well. You can also apply styling to your slicers and place them at an appropriate location. I have placed them at the bottom and applied a dark theme.

Final Dashboard in Excel

And here we are at the end of this dashboard creation. Have a look at the GIF below for the final result:

final result

GIF by Author

The Excel file with the dashboard and dataset will be available on my GitHub repository.

Conclusion

In this article, I have explained how to create dashboards in excel. I discussed how to create pivot tables, insert charts into the sheets, create the layout of a dashboard, how to bring all charts together on the dashboard, make the charts beautiful and how to connect all these charts to common slicers.

Note: The dataset is originally obtained from excelfind.com

If you want to read/explore every article of mine, then head over to my master article list which gets updated every time I publish a new article on any platform!

For any doubts, queries, or potential opportunities, you can reach out to me via:

1. Linkedin — in/kaustubh-gupta/

2. Twitter — @Kaustubh1828

3. GitHub — kaustubhgupta

4. Medium — @kaustubhgupta1828

The media shown in this article are not owned by Analytics Vidhya and are used at the Author’s discretion.
kaustubh 10 Sep, 2021

Kaustubh Gupta is a skilled engineer with a B.Tech in Information Technology from Maharaja Agrasen Institute of Technology. With experience as a CS Analyst and Analyst Intern at Prodigal Technologies, Kaustubh excels in Python, SQL, Libraries, and various engineering tools. He has developed core components of product intent engines, created gold tables in Databricks, and built internal tools and dashboards using Streamlit and Tableau. Recognized as India’s Top 5 Community Contributor 2023 by Analytics Vidhya, Kaustubh is also a prolific writer and mentor, contributing significantly to the tech community through speaking sessions and workshops.

Responses From Readers

Clear