Results 1 to 13 of 13
  1. #1
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78

    Sort Data used in Chart Wizard


    Ok have a form with several charts on it all made from different queries. It appears that when using the chart wizard it creates a crosstab query, I want to sort this query by the SumofDowntime Hours below is the row source code

    Code:
    TRANSFORM Sum([SumOfSumOfDown]) AS [SumOfSumOfSumOfDown] SELECT [Equipment] FROM [Truck30DayBreakdown]   GROUP BY [Equipment] PIVOT [Equipment];
    Here is a pictire of the graphClick image for larger version. 

Name:	ChartSortHelp.png 
Views:	9 
Size:	15.8 KB 
ID:	15721

    as you can see I would like it in order so the largest number on the right with decreases downtime hours as you go left.

    I tried to add an ORDER BY clause in but it didnt work, probably didnt have it in correct syntax or something.

    Any help would be appreciated.

    Thanks

  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,771
    The purpose of bars on a bar chart is to readily identify the highs and lows regardless of order. Bars are ordered by the x axis categories (the CROSSTAB headers), not the aggregate values.

    None of my charts use CROSSTAB but none of my charts are bar charts.
    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.

  3. #3
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78
    I agree 100% but the boss likes it in descending order lol

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Well, I have never seen a bar chart generated by any product do that. Is Boss OCD?
    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.

  5. #5
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78
    Excel you can do it easily, just sort data prior to selecting data. Pivot Tables do the Same. Paretos...

    Yes Boss is OCD.

    Paretos gave me an idea and it worked...Just need to create 4 different PivotChart Forms and add as sub forms in the main form. Thanks lol

    Click image for larger version. 

Name:	ChatsortPareto.png 
Views:	8 
Size:	16.2 KB 
ID:	15725
    Last edited by JayRab; 03-12-2014 at 12:11 PM. Reason: Added graph fixed

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Maybe I have seen that and just didn't register in memory. Still a lot to learn about graphing. I've never used pivot table/chart nor bar graph, just line and scattered.

    Very creative. However, I don't understand how 4 PivotChart forms result in a single graph.

    OCD boss doesn't find the non-alpha sort legend annoying?
    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.

  7. #7
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78
    Not a single graph but 4 seperate graphs. Before I had 4 charts using that Chart wizard. Now I just made 4 pivot Charts forms. In a tabbed form.

    Click image for larger version. 

Name:	ExampleCharts.png 
Views:	8 
Size:	62.7 KB 
ID:	15727

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Thank you for the clarification.

    Be aware that MS removed pivot table/chart functionality from Access 2013.
    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.

  9. #9
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78
    That sucks...I guess no one used it is that why they removed it??

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I have read enough posts from disappointed users indicating it was definitely used. Who knows MS rationale? Maybe that Excel charting has more capability, until you hit 1,048,576 rows.
    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.

  11. #11
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78
    Is there an easy way to bring in charts from excel into Access reports, forms, etc? Are they able to be dynamic so as my data changes inside the database it automatically updates.

    Or will this require a lot of VBA? To export, manipulate data, generate graph, then reinsert back to access?

    Thats why I like Access stuff. Managers can just open database and it automatically updates throughout the day as data is input. I do not have to touch it for it to be updated.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Never done that.

    Bing: Access embed Excel chart in form

    Does this help http://www.brighthub.com/computing/w...les/26778.aspx
    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.

  13. #13
    JayRab is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    78
    Yes thank you.

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

Similar Threads

  1. form wizard but data is from sql server
    By rashima in forum Forms
    Replies: 5
    Last Post: 04-17-2012, 12:12 AM
  2. Accessing Data Import wizard via a macro?
    By Madraykin in forum Import/Export Data
    Replies: 6
    Last Post: 03-27-2012, 12:34 PM
  3. sort data in the report
    By rawandjamal in forum Reports
    Replies: 1
    Last Post: 12-23-2010, 07:07 PM
  4. Chart Data Max?
    By mikesr in forum Reports
    Replies: 12
    Last Post: 10-08-2010, 07:18 AM
  5. Using Import wizard to get Excel data
    By Jack Sheet in forum Import/Export Data
    Replies: 5
    Last Post: 07-16-2010, 09:44 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