Dynamic Dashboards with PivotTables & Slicers in Excel

In this article, we will show how to build dynamic dashboards with PivotTables & Slicers in Excel.

Dynamic Dashboards with PivotTables & Slicers in Excel
Image courtesy of Freepik
A dynamic dashboard in Excel lets you interact with your data in real time. Excel is incredibly powerful for data analysis, and combining PivotTables with Slicers creates dynamic, interactive dashboards that update automatically.

In this article, we will show how to build dynamic dashboards with PivotTables & Slicers in Excel.

Step 1: Prepare Your Data

Before creating a dashboard, it’s important to structure your data properly.

Requirements for your dataset:

  • Must be in tabular format (no merged cells).
  • Each column should have a clear, unique header.
  • No blank rows or columns.
  • Ensure all columns have appropriate formatting:
    • Date column as Short Date.
    • Unit Price and Total Sales as Currency.
    • Units Sold as a Number with no Decimals.
  • Convert to an Excel Table:
    • Select all data or press Ctrl+A.
    • Press Ctrl+T or go to the Insert tab >> select Table.
    • Check on My table has headers.
    • Click OK.

Dynamic Dashboards with PivotTables & Slicers in Excel

  • Name your table:
    • With any cell in the table selected,
    • Go to the Table Design tab >> change Table Name to SalesData.

Dynamic Dashboards with PivotTables & Slicers in Excel

Step 2: Create Your First PivotTable

Let’s create a PivotTable showing sales by Region and Product Category.

  • Click anywhere in your SalesData table.
  • Go to the Insert tab >> select PivotTable.
  • Ensure the table range or name is correct and select New Worksheet.
  • Click OK.

Dynamic Dashboards with PivotTables & Slicers in Excel

  • In the PivotTable Fields pane:
    • Drag the Region field to the Rows area.
    • Drag the Product Category field to the Columns area.
    • Drag the Total Sales field to the Values area.
  • Now, the first PivotTable will show how much revenue each product category generates in each region.

Dynamic Dashboards with PivotTables & Slicers in Excel

Step 3: Add Slicer and Timeline

Now, add slicers and timeliners to filter this data interactively.

Insert Slicer:

  • Select any cell of the PivotTable.
  • Go to the PivotTable Analyze tab >> select Insert Slicer.
  • Select Sales Rep and Date.
  • Click OK.

Dynamic Dashboards with PivotTables & Slicers in Excel

Insert Timeline:

  • Select any cell of the PivotTable.
  • Go to the PivotTable Analyze tab >> select Insert Timeline.
  • Select Date.
  • Click OK.

Dynamic Dashboards with PivotTables & Slicers in Excel

  • Position the slicers and timeline beside your PivotTable.

Dynamic Dashboards with PivotTables & Slicers in Excel

Test your slicers and timeliners by clicking different sales reps and watching how the PivotTable updates automatically!

Dynamic Dashboards with PivotTables & Slicers in Excel

Step 4: Create Additional PivotTables

Let’s add two more PivotTables to our dashboard.

PivotTable 2: Monthly Sales Trend

  • Click anywhere in your SalesData table.
  • Go to the Insert tab >> select PivotTable.
  • Ensure the table range is correct and select New Worksheet.
  • Click OK.

 Dynamic Dashboards with PivotTables & Slicers in Excel

  • In the PivotTable Fields pane:
    • Drag Date to the Rows area. It will show.
      • Months (Date)
      • Days (Date)
      • Date
    • Drag Total Sales to the Values area.

 Dynamic Dashboards with PivotTables & Slicers in Excel

PivotTable 3: Top Products by Units Sold

  • Create another PivotTable on the same worksheet as PivotTable 3.
  • In the PivotTable Fields pane:
    • Drag Product Name to the Rows area.
    • Drag Units Sold to the Values area.

 Dynamic Dashboards with PivotTables & Slicers in Excel

Step 5: Connect Multiple PivotTables to the Same Slicers

Let’s connect our existing slicers to all PivotTables:

  • Right-click on the Sales Rep slicer.
  • Select Report Connections.

 Dynamic Dashboards with PivotTables & Slicers in Excel

  • Check all PivotTables in the list.
  • Click OK.

 Dynamic Dashboards with PivotTables & Slicers in Excel

  • Repeat for the Date slicer.

 Dynamic Dashboards with PivotTables & Slicers in Excel

Now, when you click on a specific sales rep or date range, all three PivotTables will update simultaneously!

Step 6: Create PivotCharts

Transform your PivotTables into visual charts.

For the Region/Category PivotTable:

  • Click anywhere in the PivotTable.
  • Go to PivotTable Analyze tab >> select PivotChart.
  • Select Clustered Column chart.
  • Click OK.
  • Format the chart:
    • Add chart titles.
    • Customize axes.
    • Remove unnecessary elements (e.g., gridlines, legends if not needed).

Dynamic Dashboards with PivotTables & Slicers in Excel

For the Monthly Sales Trend:

  • Click anywhere in the PivotTable.
  • Go to PivotTable Analyze tab >> select PivotChart.
  • Select Line with Markers chart.
  • Click OK.

For the Top Products:

  • Click anywhere in the PivotTable.
  • Go to PivotTable Analyze tab >> select PivotChart.
  • Select Bar chart.
  • Click OK.

Dynamic Dashboards with PivotTables & Slicers in Excel

Any change in your PivotTable will be reflected in your PivotChart automatically.

Step 7: Design Your Dashboard Layout

Now let’s organize everything into a cohesive dashboard.

  • Rename your dashboard worksheet to Sales Dashboard.
  • Position your charts:
    • Region/Category chart at the left.
    • Monthly Trend chart in the middle.
    • Top Products chart on the right.
  • Place slicers at the top for easy access.
  • Add a title using a text box: Sales Performance Dashboard.

Dynamic Dashboards with PivotTables & Slicers in Excel

Step 8: Enhance with Formatting

Let’s make the dashboard more visually appealing:

  • Apply conditional formatting to the Region/Category PivotTable:
    • Select the data cells.
    • Go to the Home tab >> from Conditional Formatting >> from Color Scales >> select Green-Yellow-Red.
  • Format the Monthly Trend chart:
    • Click on the chart.
    • Go to the Chart Design >> select Style 5 (or any style you prefer).
    • Add chart title: Monthly Sales Trend.
  • Format the Top Products chart:
    • Add data labels.
    • Go to the Chart Design >> select Add Chart Element >> select Data Labels.
    • Sort in descending order.
    • Add chart title: Top Products.

Dynamic Dashboards with PivotTables & Slicers in Excel

Check Interactivity:

Dynamic Dashboards with PivotTables & Slicers in Excel

Troubleshooting Tips

  • If dates aren’t grouped properly, ensure they’re formatted as dates in the source data.
  • If slicers aren’t updating all PivotTables, double-check the Report Connections.
  • Consider using “Defer Layout Update” in the PivotTable options for performance issues with larger datasets.

Advanced Techniques

Create a calculated field showing profit margin:

  • Click on your PivotTable.
  • Go to PivotTable Analyze tab >> from Fields, Items, & Sets >> select Calculated Field.
  • Name it Profit and enter the following formula.
=[Total Sales]*0.3
  • Click Add and OK.

Add a dynamic title that changes with selections:

  • Use GETPIVOTDATA() to pull the currently filtered total.
  • Insert the following formula.
="Sales Dashboard: "&TEXT(GETPIVOTDATA("Total Sales",$A$3),"$#,##0")

Download Workbook

Conclusion

By following the above steps, you can create professional and interactive dashboards that allow users to easily analyze sales data. You can use PivotTables to summarize and analyze data, and PivotCharts to visualize data. Interactive slicers and timelines help to automatically filter data. Dynamic Excel dashboards refresh easily when data is added. This kind of dashboard is useful for sales reports, KPI tracking, inventory analysis, and more.

Get FREE Advanced Excel Exercises with Solutions!

Shamima Sultana
Shamima Sultana

Shamima Sultana, BSc, Computer Science and Engineering, East West University, Bangladesh, has been working with the ExcelDemy project for 3+ years. She has written and reviewed 1000+ articles for ExcelDemy. She has also led several teams with Excel VBA and Content Development works. Currently, she is working as the Project Manager and oversees the day-to-day work, leads the services team, allocates resources to the right area, etc. Her work and learning interests vary from Microsoft Office Suites, and... Read Full Bio

2 Comments
  1. Perfect Mdm please share data file for better practice.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo