How to Make Access Charts Display Categories with Zero Values
Question details
The user needs to display categories in an Access chart even when their corresponding data totals are zero.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Generating a chart in Access where some categories lack matching transaction data in the source table.
- Observed behavior
- The chart omits categories with zero values because the default query excludes records without matching transaction data.
Ensure you have access to the SQL View or Design View of the query powering your chart, and identify the primary table containing all of your categories.
Modify the Chart's Source Query with a LEFT JOIN and Nz Function
Adjust the underlying query to include all records from the primary table and convert null values to zero, ensuring all categories appear on the chart.
By default, Access uses an INNER JOIN which filters out categories without data. Changing this to a LEFT JOIN and forcing empty values to display as zero resolves the omission.
Open your Access database and switch to Design View or SQL View for the query that serves as the data source for your chart.
Ensure the primary table (e.g., the 'People' table) is set as the main table. Double-click the join line connecting to your totals table and select the option to include ALL records from the primary table.
Wrap the value field in the Nz() function to convert nulls to zero. For example, modify your calculated amount field to read: Nz(Sum([Transactions].[Amount]), 0).
Save the modified query, then switch back to your Form or Report view and refresh the chart to verify the zero-value categories now appear.

Create an Intermediary Master Query
If you prefer not to alter the original transaction query, build a new master query specifically formatted for charting.
Switch to WPS Office for Easier Data Visualization
While Microsoft Access handles complex relational databases, creating and formatting charts can be highly technical and require SQL modifications. WPS Spreadsheet offers a lightweight, free alternative for robust data analysis and visualization. Easily import your database exports and create beautiful charts without writing complex queries.
- 1. Export Access Data: Export your Access query data to an Excel or CSV file format.
- 2. Open in WPS Spreadsheet: Launch WPS Office and open your exported file to instantly view your dataset.
- 3. Insert a Chart: Highlight your data range, navigate to the Insert tab, and choose your preferred chart type. Empty values can be configured to display as zero directly from the chart options.

Frequently Asked Questions
Why do empty categories disappear in my Access charts?
By default, Access joins tables using an INNER JOIN, which only returns rows that have matching data in both tables. If a category lacks transaction data, it is excluded entirely, causing it to drop off the chart.
What does the Nz function do in Microsoft Access?
The Nz (Null-to-Zero) function evaluates a variant or field and returns a specified value (like 0) if the field is Null. It is highly useful in queries to ensure missing data points are plotted as 0 on a chart instead of being ignored.
Can I use a RIGHT JOIN instead of a LEFT JOIN for my chart query?
Yes, depending on how your tables are arranged in the query design grid. A RIGHT JOIN will include all records from the right-hand table and only matching records from the left. Ensure the table containing all your categories is the one preserving all records.
How do I refresh my Access chart after updating the underlying query?
After saving the modified source query, switch your form or report to Form View or Report View. You can also press F5 or click the 'Refresh All' button on the Home tab to ensure the chart pulls the latest data.




