Results 1 to 2 of 2
  1. #1
    Rustin788 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    47

    CrossTab Changing Numbers

    Hey,



    I am having an issue where a crosstab is changing the values in a column. Below is what the information looks like that the Crosstab is pulling from (Numbers made up aside from % proprietary). The % Proprietary column is the formula [Prop Sales]/[All Sales]. When I make the information a cross tab using the Customer=Row, and Year=Column, and % Proprietary=Values; the numbers change to just 1%, 2%, and 3%. I have tried everything I can think of but I can't seem to get the correct numbers to show. Oddly, it isn't even rounding correctly since the 2.76 goes to 2% and not 3%.

    Any help would be appreciated

    Year Customer Prop Cases Prop Sales All Cases All Sales % Proprietary
    2012 Bob 100 3500 600 9053 1.47%
    2013 Bob 200 5322 977 10986 2.76%
    2014 Bob 300 5677 1754 13211 3.01%







    Update: I was able to get it to show the correct information by using the IIF statement: IIf([% Proprietary]Is Null,0,[% Proprietary]) on the crosstab. I don't know why it worked but it displays the correct numbers.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Advise not to use spaces and special characters/punctuation (underscore is exception) in naming convention. Better would be Pct_Proprietary.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 17
    Last Post: 07-24-2014, 04:27 AM
  2. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  3. Replies: 3
    Last Post: 10-04-2012, 11:38 AM
  4. Changing names to ID numbers
    By marksnwv1957 in forum Access
    Replies: 4
    Last Post: 08-28-2012, 03:47 PM
  5. Replies: 2
    Last Post: 11-09-2005, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums