Solved

Pivot Chart Rounding Inconsistencies

Posted on 2004-04-12
8
759 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
ID: 10809029
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
ID: 10809262
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
ID: 10809329
Have you tried to use a format statement on the valuefield in the query like:
format([valuefield],"#.00")

Nic;o)
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 8

Author Comment

by:Mourdekai
ID: 10809357
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
ID: 10817695
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
ID: 10835002
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
ID: 10835559
User resolved; closed, 500 points refunded.

Netminder
Site Admin
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

785 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