Fix Excel PivotTable Calculated Field Returning Zero for Currency
Question details
A currency field imported via Power Query sums correctly in the standard PivotTable values area but returns zero when used inside an Excel calculated field.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating calculated fields in a PivotTable using source data generated by Power Query.
- Observed behavior
- The calculated field output shows as zero across all rows, despite the fact that the source currency field calculates perfectly in a standard PivotTable sum or when a helper column is used.
Verify that your dataset has been fully refreshed and check your source data to ensure the currency values are stored as true numbers, not text strings disguised as numbers.
Use a DAX Measure Instead of a Legacy Calculated Field
When Power Query data is loaded into the Data Model (Power Pivot), legacy Excel calculated fields often fail or return zero. Creating a DAX measure is the proper solution.
Standard PivotTable calculated fields operate on base data, which can cause conflicts when interacting with the Data Model. DAX (Data Analysis Expressions) measures are designed specifically to handle calculations within the Data Model.
Navigate to the Power Pivot tab on your Excel ribbon. If it is not visible, enable the Power Pivot add-in via File > Options > Add-ins.
Click on 'Measures' in the ribbon and select 'New Measure' from the dropdown menu.
Select the correct target table, name your measure, and write your formula using DAX syntax (e.g., =SUM([CurrencyField]) * 0.1). Format the output as Currency.
Click OK to save. The new DAX measure will appear in your PivotTable Fields list. Drag it into the Values area to see the correct calculations.
Verify and Fix Data Types in Power Query
Calculated fields will return zero if the source column contains blank values, errors, or numbers stored as text that standard summation can partially ignore.
Create a Helper Column in the Source Data
If you are not using the Data Model, bypassing the PivotTable calculated field by doing the math directly in the source data is a foolproof workaround.
Try WPS Office for Seamless Spreadsheet Data Analysis
Troubleshooting complex Data Model and Power Query issues in Microsoft Excel can be time-consuming. For lightweight, straightforward spreadsheet analysis, WPS Office offers a highly compatible and free alternative.
- 1. Download and Install: Visit the official WPS Office website to download the free suite for your operating system.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheets and open your existing .xlsx files directly without any format conversion.
- 3. Analyze Data Easily: Use the standard Insert > PivotTable function to summarize data and add standard calculated fields effortlessly.

Frequently Asked Questions
Why does my PivotTable calculated field show 0 for everything?
This usually happens when the source data contains numbers stored as text, hidden blank spaces, or if the data was loaded into the Power Pivot Data Model. Calculated fields struggle to evaluate Data Model fields properly.
Can I use standard calculated fields with Power Query data?
Yes, but only if you load the Power Query data directly to an Excel Table. If you check 'Add this data to the Data Model' when loading, standard calculated fields will fail, and you must use DAX measures instead.
How do I know if my Excel data is stored in the Data Model?
Click anywhere inside your PivotTable. If you see 'Power Pivot' tabs appear, or if your PivotTable Fields pane shows table names with a small database cylinder icon next to them, your data is in the Data Model.
What is the difference between a calculated field and a DAX measure?
A legacy calculated field performs math on the summed totals of your PivotTable after standard aggregation. A DAX measure evaluates data dynamically within the underlying Data Model, making it much more powerful and accurate for complex datasets.




