How to Fix Excel PivotTable Percentage Calculation Returning Zero
Question details
The user is attempting to calculate or count values below 6 percent in an Excel PivotTable, but the summary calculation returns zero despite row-level values displaying correctly.

- Product
- Microsoft Excel 365
- Device & OS
- not provided
- Scenario
- Counting or summarizing specific percentage conditions (e.g., values < 6%) in a PivotTable summary row.
- Observed behavior
- Row-level calculations calculate and display properly, but the PivotTable summary returns a zero instead of the aggregated count.
Ensure your source data cells are formatted strictly as Numbers or Percentages, not Text, as text-formatted numbers will cause calculation aggregation errors in PivotTables.
Use Power Query and Power Pivot DAX Measures to Reshape Data
Clean your data by removing NA values, unpivoting the columns in Power Query, and creating a custom DAX measure in Power Pivot to accurately count values below 6%.
Standard PivotTables often struggle to summarize pre-calculated percentage rows or evaluate conditional logic directly in the Values area. By loading your data into the Excel Data Model, you can write DAX measures that evaluate each row dynamically.
Select your source data range, navigate to the 'Data' tab on the Excel ribbon, and click 'From Table/Range' to open the Power Query Editor.
Filter out any 'NA' values from your columns. Select the identifier columns you want to keep (e.g., Columns A through J), right-click the headers, and choose 'Unpivot Other Columns' to reshape the data into attribute-value pairs.
In Power Query, click 'Close & Load To...', choose 'Only Create Connection', and check the box for 'Add this data to the Data Model'.
Go to the 'Power Pivot' tab, click 'Measures' > 'New Measure'. Enter a DAX formula to count the threshold, for example: Measure = CALCULATE(COUNTROWS(Data), Data[Value] < 0.06).
Insert a new PivotTable using the workbook's Data Model. Drag your new custom measure into the Values area to view accurate summaries without returning zero.

Try WPS Office for Intuitive Data Summarization
If you are dealing with complex data reshaping and advanced PivotTable errors in Microsoft Excel, consider trying WPS Office. It provides an intuitive, lightweight, and highly compatible spreadsheet tool for seamless daily data summarization without the steep learning curve.
- 1. Download and Install: Download WPS Office Free from the official website and open your existing Excel workbook.
- 2. Create a PivotTable: Select your data range, navigate to the Insert tab, and click PivotTable to easily aggregate your data.
- 3. Analyze Data Without Errors: Drag and drop fields into the Rows and Values areas to calculate percentages or counts cleanly using straightforward value field settings.

Frequently Asked Questions
Why does my Excel PivotTable show zero instead of the actual percentage?
This typically happens when the source data is formatted as text rather than numerical values, or when a standard PivotTable calculation fails to aggregate conditional logic across pre-calculated percentages correctly.
How do I count values below a specific percentage in an Excel PivotTable?
Instead of using basic PivotTable value settings, you can add your data to the Excel Data Model and use a Power Pivot DAX measure (e.g., CALCULATE and COUNTROWS) to apply specific conditional filters, like counting values less than 0.06 (6%).
What does 'Unpivot Other Columns' do in Power Query?
It transforms your data from a wide format (many columns) to a long format (fewer columns, more rows). It keeps your selected identifier columns intact and rotates the remaining columns into attribute-value pairs, which makes the data much easier to analyze in a PivotTable.




