Results 1 to 4 of 4
  1. #1
    titiakila is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2021
    Posts
    22

    make a pie chart from table of percentage

    Hello,
    I work on ACCESS 2016.
    I have a table with percentage for each value and I want to make a pie chart diagram with the mean of each column and the names of the columns as titles. After that I want to display on the pie chart the mean for each category in that example it is wine.


    Here's my table :
    Click image for larger version. 

Name:	Capture6.PNG 
Views:	18 
Size:	14.5 KB 
ID:	46097

    What should I put as the row source of my graph ?



    Thank you in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    How can a percentage be 900? Why is there no data in other fields and records? Is field set as a Double size?

    Setting the Percent property does not change how data is stored. I never set formatting properties in table.

    To show overall average of all wines together, consider:

    Start with a UNION query object:

    SELECT [No] AS ID, sugar AS Data, "sugar" AS Cat, wine_name AS Wine FROM Table2
    UNION SELECT [No], alcohol, "alcohol", wine_name FROM Table2
    UNION SELECT [No], acidity, "acidity", wine_name FROM Table2;

    Then graph RowSource:

    SELECT Cat, Avg(Data) AS AvgD FROM Query1 GROUP BY Cat;
    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
    titiakila is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2021
    Posts
    22
    Sorry I just created a test database but I don't know why I couldn't change the values of the percentage just with integer values.
    Yes thank you it is perfect what you wrote it really helped me thank you a lot !
    Do you know what I should do to add a condition where to display the mean value of only wine of category bordeaux or wine of category beaujolais in the case where there are several of each ?
    Thank you !

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Bind form to table or query. Bind textbox to wine_name field. Graph RowSource:

    SELECT Cat, Avg(Data) AS AvgD FROM Query1 WHERE Wine = [Text1] GROUP BY Cat;
    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. how i can make a dynamic chart report?
    By MOHRONAL in forum Reports
    Replies: 5
    Last Post: 11-13-2015, 05:29 PM
  2. How do I make a chart which does not summarise data
    By ProfessorBug in forum Access
    Replies: 1
    Last Post: 08-08-2013, 10:18 AM
  3. Replies: 7
    Last Post: 12-05-2012, 10:10 AM
  4. Make Chart From Query in Access 2007
    By James Parker in forum Access
    Replies: 6
    Last Post: 01-06-2012, 08:14 AM
  5. make a chart from the table
    By barkarlo in forum Access
    Replies: 0
    Last Post: 07-29-2010, 02:22 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