Solved

Pivot Chart Rounding Inconsistencies

Posted on 2004-04-12
8
787 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
[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
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

752 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