Solved

Access 2003 - Remove Null Values from Access PivotChart

Posted on 2009-07-01
2
2,185 Views
Last Modified: 2013-11-28
How do you remove null values from an access pivotchart?

the null values are currently showing up as zeros on the graph; I want the graph line to stop at the last true value

I do not want the 'null' values showing up on the chart as zeros

Issue arises as I have 2008 and 2009 data, 2008 runs from fiscal week 01-52 and 2009 runs from 01-22 (fiscal weeks 23-52 are null and show up on the graph as zeros)
0
Comment
Question by:jbradford777
2 Comments
 
LVL 15

Expert Comment

by:weinberk
ID: 24756481
Instead of having the value be in the pivot chart, I'd use the nz function.
nz will give you whatever you want if the value is null.  For example
nz(valuename,"no data") would print "no data" if valuename is null.
You could do:
nz(valuename,"") to simply print a blank if valuename is null, and print the value otherwise.
Hope this helps.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 24771720
jbradford777,

In order for the Periods to show up on the Pivot Chart, they must have a value.
So, for example, you can't see November 2008 and not have a value associated with it.
This is why it is zero.

If it is null then it does not exist.
If it does not exist, then it can't be on the chart.

If you want to see it on the chart, it must have a value, this is why it is zero.

Make sense?

What you are seing with the line chart is a graphical anomoly that is more pronounced when you use a line chart.
This is because the line is attached to every datapoint, and must "Lead" to the next data point.
Hence, you see the line attached, or "Leading" to the Zero value(s).

If you use Column chart instead, the "Zero" values are not so obvious.
Because a Column is not attacted to anything, and the series for the empty values will still appear.

I have attacched a sample.

(Obviously another option would be to base the Pivot Chart on a query that only displays date values that have values:
SELECT, Fld1, YourDateData, Fld2, FROM tblYourData Where YourDateData Is Not Null)

JeffCoachman
Access-EEQ24536942PivotChartWith.mdb
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question