Results 1 to 4 of 4
  1. #1
    PeakH is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    143

    Chart Not Displaying all data on X Axis

    I have a chart that shows total sales for each month. The goal is to show 13 months, including the current month. So for this month it would show Dec 2016 through Dec 2017.


    The query my chart is based on is as follows:

    Code:
    SELECT DISTINCTROW MonthName(Month([DelDate]),True) & " " & Year([deldate]) AS DelMo, Sum(RoundReg([TotalPrice],2)) AS RoundTotals
    FROM tblOrderConf INNER JOIN tblOrderDetails ON (tblOrderConf.ConfTableID = tblOrderDetails.ConfTableID) AND (tblOrderConf.ConfTableID = tblOrderDetails.ConfTableID)
    WHERE (((Year([DelDate])*12+DatePart("m",[DelDate]))>Year(Date())*12+DatePart("m",Date())-13) AND ((tblOrderDetails.TotalPrice)>0) AND ((tblOrderConf.IsSample)=No))
    GROUP BY MonthName(Month([DelDate]),True) & " " & Year([deldate]), Year([deldate]), Month([deldate])
    ORDER BY Year([deldate]) DESC , Month([deldate]) DESC;
    When I run the query everything shows up as expected, but the chart only displays the months in the current year. I have tried getting it to display more of 2016 by going back to November and October, but it still only shows 2017 months.
    Any idea why this is happening?

    Thanks in advance for the help.

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    sometimes ,if the data is in the query, but not on the chart,
    you must enlarge the chart and make smaller font and make more room for the values to show.

    If there's no room, it only shows some values. Like zooming in to see more.

  3. #3
    PeakH is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    143
    That doesn't seem to be the case here. I tried enlarging it to a ridiculous size and still it only shows as far back as January.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I analyze chart issues best when I can work with data. If you want to provide, follow instructions at bottom of my post.
    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. Chart Y Axis Whole Integers
    By james28 in forum Reports
    Replies: 3
    Last Post: 08-21-2014, 12:31 PM
  2. Replies: 13
    Last Post: 06-10-2014, 06:19 AM
  3. Formatting Chart Axis
    By kab16 in forum Access
    Replies: 2
    Last Post: 06-05-2014, 11:13 AM
  4. Scaling a Chart Axis
    By Paul H in forum Reports
    Replies: 5
    Last Post: 10-16-2013, 01:50 PM
  5. Displaying data in a chart
    By emilesilvis in forum Reports
    Replies: 1
    Last Post: 05-16-2011, 10:02 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