How to Change Solve Order in Pivot Table: Easy Guide
When using PivotTables in Excel, the order of calculation matters—especially when you work with calculated fields, calculated items, or multiple filters. Excel follows a solve order when evaluating calculations. Learning how to change the solve order in a PivotTable ensures accurate results and better data analysis.
In this guide, we will explain how to change the solve order in simple steps with examples and practical tips.
What is Solve Order in a Pivot Table?
In a PivotTable, when multiple calculated items are used in the same field, Excel applies them in a sequence. This sequence is called the solve order.
For instance, if you create two calculated items in the same field:
- Item A = Sales – Returns
- Item B = Item A + Bonus
If Item B is calculated before Item A, the final value will be incorrect. So the solve order must be arranged correctly to ensure accurate calculations.
Why Changing Solve Order Matters
Changing the solve order is essential when:
- You have multiple calculated items or custom formulas.
- You are analyzing complex datasets.
- You want to ensure logical sequence in computations.
Incorrect solve order can result in wrong values, which can mislead your analysis.
Difference Between Calculated Field and Calculated Item
Before changing the solve order, it’s important to know the difference between calculated fields and calculated items.
Feature | Calculated Field | Calculated Item |
---|---|---|
Applies To | Entire column/field | Specific items within a field |
Calculation Basis | Uses data in other fields | Uses existing items in the same field |
Solve Order Option | Not applicable | Applicable when multiple items are used |
Solve order only applies when you’re using calculated items, not calculated fields.
Steps to Change Solve Order in Pivot Table
Let’s go through a step-by-step method to change the solve order for calculated items in Excel.
Step 1: Create a Pivot Table
- Select your dataset.
- Go to the Insert tab.
- Click PivotTable.
- Choose the desired range and location for your PivotTable.
Step 2: Add Fields to the Pivot Table
Drag the necessary fields to the Rows, Columns, and Values areas.
Step 3: Insert Calculated Items
To create a calculated item:
- Click anywhere inside the PivotTable.
- Go to PivotTable Analyze > Fields, Items & Sets > Calculated Item.
- In the dialog box:
- Enter a name (e.g., “Adjusted Sales”).
- Input a formula like
Sales - Returns
.
- Click Add, then OK.
Repeat this process to create more calculated items if needed.
Step 4: Open the Solve Order Dialog Box
Once you’ve added multiple calculated items, here’s how to access the solve order settings:
- Click on any cell within the PivotTable.
- Go to PivotTable Analyze on the ribbon.
- Click Fields, Items & Sets > Solve Order.
This will open the Solve Order dialog box, listing the current sequence of calculated items.
Understanding the Solve Order Dialog Box
The Solve Order window shows all your calculated items and the order in which Excel processes them.
Each entry includes:
- Order number
- Name of calculated item
- Field it belongs to
- Formula used
You can select any item and use Move Up or Move Down to rearrange the calculation order.
Example: Changing Solve Order for Accuracy
Imagine you have the following calculated items:
- Discounted Sales = Sales – Discounts
- Net Sales = Discounted Sales – Returns
If Excel calculates Net Sales first, it won’t have the correct value for Discounted Sales yet.
To fix this:
- Open the Solve Order window.
- Move Discounted Sales above Net Sales.
- Click OK to apply the new solve order.
Now Excel will:
- First subtract discounts from sales.
- Then subtract returns from the result.
This ensures accurate reporting.
Best Practices When Using Solve Order
Here are some useful tips to keep your PivotTable calculations accurate:
1. Use Clear Naming Conventions
When naming calculated items, use descriptive names so you can easily identify and organize them in the solve order list.
2. Limit the Number of Calculated Items
Too many calculated items can make it harder to manage solve order. Try using helper columns in the source data for complex formulas when possible.
3. Verify Your Calculations
After rearranging the solve order:
- Refresh your PivotTable.
- Cross-check a few calculated values manually.
- Use conditional formatting or error checking to highlight discrepancies.
Troubleshooting Solve Order Issues
If your values still look incorrect even after changing the solve order, here’s what to check:
1. Check for Circular References
Make sure that no calculated item refers back to another item that depends on it. This can cause circular reference errors.
2. Refresh the PivotTable
After making changes:
- Right-click on the PivotTable.
- Select Refresh to update the data and calculations.
3. Confirm Item Dependencies
Ensure that your formulas follow a logical flow. For instance, a gross profit item should come after total cost is calculated.
Advanced Tips for Working with Solve Order
If you’re working with large datasets or multiple PivotTables, these tips can help:
Use Multiple PivotTables with Linked Data
Instead of adding many calculated items to one PivotTable, consider using Power Pivot or separate PivotTables linked to the same data source for better control.
Document Your Solve Order Changes
Keep a small table like the one below to track your calculated items and their sequence.
Item Name | Formula | Depends On | Position |
---|---|---|---|
Discounted Sales | Sales – Discounts | Sales, Discounts | 1 |
Net Sales | Discounted Sales – Returns | Discounted Sales | 2 |
Final Revenue | Net Sales + Bonuses | Net Sales, Bonuses | 3 |
Leverage Excel Tables
Convert your source data into an Excel Table before creating the PivotTable. This improves data integrity and makes refreshing easier after edits.
When You Cannot Change Solve Order
There are certain conditions where solve order cannot be modified:
- You are using calculated fields instead of calculated items.
- You’re using Power Pivot with DAX formulas—DAX has its own evaluation logic.
- The PivotTable is built on an OLAP cube, and calculated members are handled on the server side.
In these cases, you’ll need to redesign your calculation strategy or move to Power Pivot.
Final Thoughts
Changing the solve order in a PivotTable is a critical step when dealing with multiple calculated items. A well-organized solve order ensures your formulas are applied in the right sequence, leading to accurate analysis.
To recap:
- Use the Fields, Items & Sets menu to access the Solve Order dialog.
- Rearrange calculated items using Move Up or Move Down.
- Always refresh the PivotTable after making changes.
FAQs
How do I access the solve order settings in Excel?
To access the solve order, click anywhere in the Pivot Table, go to the “PivotTable Analyze” tab, choose “Fields, Items & Sets”, and then select “Solve Order”.
Can I use solve order with calculated fields?
No, solve order only applies to calculated items within the same field. Calculated fields do not use or require solve order adjustments.
Why are my Pivot Table results incorrect even after changing solve order?
Incorrect results can happen due to circular references, incorrect formulas, or outdated Pivot Table data. Always refresh the Pivot Table after changing the solve order and verify item dependencies.
What is the difference between calculated item and calculated field?
A calculated item applies to individual items in a field, while a calculated field applies to the entire column. Solve order can only be changed for calculated items.
Can I use solve order with Power Pivot or DAX?
No, Power Pivot uses DAX formulas which have their own built-in calculation engine. Solve order adjustments are not available in this case.

Vaishvi Desai is the founder of Excelsamurai and a passionate Excel enthusiast with years of experience in data analysis and spreadsheet management. With a mission to help others harness the power of Excel, Vaishvi shares her expertise through concise, easy-to-follow tutorials on shortcuts, formulas, Pivot Tables, and VBA.