Chart & Visualization Issues

How to Make Access Charts Display Categories with Zero Values

Camila MilosovichCamila Milosovich Nov 2, 2026 869 views

Question details

The user needs to display categories in an Access chart even when their corresponding data totals are zero.

How to Make Access Charts Display Categories with Zero Values
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Query

Open your Access database and switch to Design View or SQL View for the query that serves as the data source for your chart.

2
Change to a LEFT JOIN

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.

3
Apply the Nz Function

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).

4
Save and Refresh

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.

Modify the Chart's Source Query with a LEFT JOIN and Nz Function
Understanding the Nz Function: The Nz function in Access evaluates a variant and returns a specified value (such as 0) if the field is Null. This is crucial for plotting empty categories correctly on a chart.
Free Microsoft Office alternative

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. 1. Export Access Data: Export your Access query data to an Excel or CSV file format.
  2. 2. Open in WPS Spreadsheet: Launch WPS Office and open your exported file to instantly view your dataset.
  3. 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.
Highly compatible with Microsoft Excel formats (.xlsx, .xls, .csv), making it seamless to import Access data.Create professional charts, graphs, and pivot tables with intuitive drag-and-drop tools.Easily handle zero values and missing data points through visual chart formatting menus.Free and lightweight Microsoft Office alternative with a familiar user interface.
microsoft office alternative - wps office

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.