Results 1 to 4 of 4
  1. #1
    Georgi is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    17

    Help with Pie Chart

    Good evening Gentlemen,



    How can I create a pie chart with two different fields, or with field and a fixed number i.e. ([training rate] is the training hours divided by session) and fixed number which is the target rate 1.75 or so.

    Please see attached excel sample and the access that I am trying to create a pie chart.

    Thank you for all,
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    Spreadsheet shows Sessions divided by Hours - not the reverse as you stated - which do you want?

    Have to get the data into one field. A UNION query will do that.

    SELECT "Rate" AS Category, Rate FROM (SELECT Sum(Training.[Training Hours]) AS SumHrs, Sum(Training.[Training Sessions]) AS SumSess, Round([SumSess]/[SumHrs],2) AS Rate
    FROM Training) As Q1
    UNION SELECT "Target", 1.75 FROM Training;

    Chart RowSource:
    SELECT Category, Rate FROM Query1;
    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
    Georgi is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2012
    Posts
    17
    Quote Originally Posted by June7 View Post
    Spreadsheet shows Sessions divided by Hours - not the reverse as you stated - which do you want?

    Have to get the data into one field. A UNION query will do that.

    SELECT "Rate" AS Category, Rate FROM (SELECT Sum(Training.[Training Hours]) AS SumHrs, Sum(Training.[Training Sessions]) AS SumSess, Round([SumSess]/[SumHrs],2) AS Rate
    FROM Training) As Q1
    UNION SELECT "Target", 1.75 FROM Training;

    Chart RowSource:
    SELECT Category, Rate FROM Query1;
    Good evening Mr. brilliant, I just tried it, you are just amazing really, thank you very much and I do apologise for bothering every time with my questions. It works, 100% what I am looking for, thanks again.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    No apology needed. I know graphs are challenging. Solving issue gives me practice.
    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. Help with Age bar chart
    By thkly8 in forum Reports
    Replies: 1
    Last Post: 11-20-2011, 12:37 PM
  2. Best Chart to Use
    By swalsh84 in forum Reports
    Replies: 2
    Last Post: 12-21-2010, 11:06 AM
  3. Replies: 2
    Last Post: 07-12-2010, 05:39 AM
  4. Chart Help
    By lcwallis in forum Reports
    Replies: 0
    Last Post: 02-16-2010, 03:25 PM
  5. ms chart
    By Fredo0709 in forum Forms
    Replies: 0
    Last Post: 12-17-2005, 01:27 PM

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