Solved

Pivot Chart Rounding Inconsistencies

Posted on 2004-04-12
8
735 Views
Last Modified: 2008-03-04
I have a form that has a pivot chart.  The number that is displayed is always an even number when I know that there must be some numbers after the decimal place.  The problem is it just chops off the decimal points.  It doesn't round up or down, it just truncates the numbers.  

The problem is I need to see exact numbers in my pivot chart!  The curious thing is that if I export the pivot chart to a data access page, it doesn't round the numbers and gives me the exact number out to the decimal places.  I need to be able to have the exact number in my form without rounding, it makes reconciling a lot easier!

How can I get a pivot chart in a form to stop rounding (truncating)?

Thanks!
0
Comment
Question by:Mourdekai
  • 4
  • 2
8 Comments
 
LVL 54

Expert Comment

by:nico5038
Comment Utility
Hmm, might be a problem in the Regional settings.
Just goto Start/Settings/Control panel and activate that.
On the control panel activate Regional and language settings and check the settings for both the number and currency.
For both the decimal separater needs to be equal, both a comma or both a dot.

Just check to be sure.

Nic;o)
0
 
LVL 8

Author Comment

by:Mourdekai
Comment Utility
I checked and the formats are exactly the same.  It's a good idea but I don't think that is the problem because if I save the form as a data access page, and open the page on the same machine, the numbers are rounded differently.  The form uses truncated numbers, while the data access page uses the true value.  I think my question might need some rewording to explain itself correctly.  So here is an example:

Let's say the data contains the number of hours that I worked over the last two weeks.  Two weeks, at 5 days a week gives 10 records.  Let's take 10 sample records:

8
7.25
9.75
10.25
8

8.5
7.75
10.75
9.75
6.5

The form would report the total as 82
The DAP would report the total as 86.5

It's like the form doesn't round after adding, but is adding only the integer parts of the numbers.
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility
Have you tried to use a format statement on the valuefield in the query like:
format([valuefield],"#.00")

Nic;o)
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 8

Author Comment

by:Mourdekai
Comment Utility
I'll try that tomorrow.  One of the data sets are numbers, and the others are currency.  I know that my query no longer worked in the pivot chart when I used FormatCurrency([field]), but I'll give that a shot.
0
 
LVL 8

Author Comment

by:Mourdekai
Comment Utility
That didn't work either.  The only option it lets me use when putting the field as the data is "count".  I can't use sum any more.
0
 
LVL 8

Author Comment

by:Mourdekai
Comment Utility
Well I found the solution.  I'm not sure I understand why it is the solution, but it works nonetheless.

I changed the data type of the field from decimal to double and it now accurately displays the decimal points in pivotchart view.

I'm going to post a request to PAQ this question.

Thanks for the help Nico, and congrats on your recent 2 Mil!
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
Comment Utility
User resolved; closed, 500 points refunded.

Netminder
Site Admin
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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 …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now