Pivot Table Issues

How to Set Up Target and Actual Sales in Excel Power Pivot

Olivia MillerOlivia Miller Nov 10, 2026 869 views

Question details

The user wants to structure and compare target and actual sales data by stream and month using Excel Power Query and Power Pivot.

How to Set Up Target and Actual Sales in Excel Power Pivot
Product
Excel
Device & OS
not provided
Scenario
Comparing monthly sales performance targets against actual achievements using a unified Data Model.
Observed behavior
Setting up proper data tables, dimension relationships, and DAX calculations to visualize variance in a PivotTable or Power BI.
Before you start

Ensure you have the Power Pivot add-in enabled in your Excel application and your raw sales data is organized in a clear, tabular format.

Solution 1Recommended

Build a Target and Actual Sales Data Model

This comprehensive method guides you through structuring your sales data, establishing relationships, and creating DAX measures for variance calculation.

To effectively analyze target versus actual sales, you must load separated fact tables into the Data Model and bridge them using shared dimension tables (like Date/Calendar and Stream).

1
Structure your sales data tables

Create two separate Excel tables named 'Target Sales' and 'Actual Sales'. Ensure both tables share a consistent column structure, such as 'Stream', 'Month' (formatted consistently like MMM YYYY), and 'Value'.

2
Load data into Power Query

Select each table and navigate to Data > From Table/Range. Rename the queries to 'TargetSales' and 'ActualSales'. Verify your data types (e.g., Month as Date, Value as Decimal). Click Close & Load To > Only Create Connection, and check the box to 'Add this data to the Data Model'.

3
Create dimension tables

Create a 'Calendar' table containing all continuous months in your data, and a 'Stream' table containing unique sales streams. Load both into Power Query and add them to the Data Model. In Power Pivot, mark the Calendar table as a Date Table.

4
Establish relationships in Power Pivot

Open the Power Pivot window and go to Diagram View. Drag to create relationships between TargetSales[Month] and Calendar[Month], and ActualSales[Month] and Calendar[Month]. Repeat this linking process for the Stream columns to your unique Stream dimension table.

5
Create DAX measures

In the Power Pivot calculation area, create measures for your analysis: Total Target := SUM(TargetSales[Value]), Total Actual := SUM(ActualSales[Value]), Variance := [Total Actual] - [Total Target], and Variance % := DIVIDE([Variance], [Total Target]).

6
Visualize with PivotTables

Go to Insert > PivotTable and select 'From Data Model'. Use Calendar[Month] and Stream[Stream] for your rows or columns, and add your newly created DAX measures into the Values area to analyze the performance variance.

Build a Target and Actual Sales Data Model
Data Modeling Best Practice: Using separate dimension tables for Calendar and Stream ensures accurate filtering and prevents calculation errors when comparing data across multiple fact tables.
Free Microsoft Office alternative

Need a lightweight alternative for spreadsheet analysis?

If you are looking for an intuitive, fast, and feature-rich spreadsheet application, WPS Office is an excellent free alternative. It effortlessly handles Microsoft Excel files and standard PivotTables while offering a smooth user experience.

  1. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Install and Launch: Run the installer and open the WPS Spreadsheet application.
  3. 3. Open your Excel Workbook: Drag and drop your existing .xlsx file into WPS Spreadsheet to continue analyzing your sales data seamlessly.
Fully compatible with Microsoft Excel formats (.xlsx, .xls) and standard PivotTables.Lightweight application that runs smoothly on Windows, Mac, and Linux without heavy resource demands.Built-in advanced formulas and intuitive data analysis tools for everyday sales tracking.Free to download and use with a highly familiar, tabbed user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I need a separate Calendar table for Target and Actual sales?

A separate Calendar (or Date) dimension table acts as a bridge, allowing you to filter and compare data from both the Target and Actual sales fact tables simultaneously without missing dates or creating inaccurate totals.

Can I combine Target and Actual sales into a single table instead?

Yes, you can append the data into one table by adding a 'Scenario' column (e.g., labeling rows as Target or Actual). However, keeping them separate and linking them via dimension tables is often more flexible for complex Data Models.

Why are my DAX measures returning blank or incorrect values in the PivotTable?

This usually happens if the relationships between your sales tables and dimension tables are not properly defined in the Power Pivot diagram view, or if the data types for the linked columns do not match.

How do I format the Variance percentage in Power Pivot?

In the Power Pivot window, select your Variance % measure in the calculation area at the bottom of the data view, navigate to the Home tab, and click the Percentage icon to apply the correct formatting.