Solved

Access 2003 - Remove Null Values from Access PivotChart

Posted on 2009-07-01
2
2,255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Expert Comment

by:Berkson Wein
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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 …

733 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