Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2014
    Posts
    2

    Question Percentile over Group Totals

    Hi Everyone,



    I'm trying to group data in a report from single table using a field in grouping and sorting and I want the percentile of every record over group total. For this currently I'm using a query to fetch data from table, however I'm unable to get percentage of every single record over group total.
    I want to display the report as below tables in single report. I'm unable to get data in "Perc" field. It's populating wrong values. Thanks in Advance

    Group1
    Item Cost Perc
    Traffic Detours 1,160,000 4.95%
    General Utilities 2,175,000.00 9.31%
    Road and Asphalt Works 20,065,028.00 85.74%
    Total 23,400,028 100%








    Group2
    Item Cost Perc
    Material 2,410,843.00 30.44%
    Subcontractor 5,510,123.00 69.56%
    Total 7,920,966.00 100%

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Create a first query that only calculates the total. Then use this total query (unjoined) in the query above to calculate the percent.

  3. #3
    Join Date
    Sep 2014
    Posts
    2
    The problem is solved, I Used Dsum function in "Perc" field as

    [Cost]/dsum("[Cost"]"[Query]","[Group]"='" & [textgroup] & "'")).

    Thanks anyway. Thank you Aytee111, I appreciate your reply.

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Yes, that will work, but for future reference avoid "D" functions whenever possible, they are the most inefficient way of getting data. Fine for having only a few records in your table(s).

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

Similar Threads

  1. Programming Totals by group in a report.
    By MatthewGrace in forum Programming
    Replies: 2
    Last Post: 11-21-2014, 12:42 AM
  2. Sorting on group totals
    By KMac in forum Reports
    Replies: 3
    Last Post: 10-16-2014, 02:33 PM
  3. Group on a totals field
    By dharsh in forum Access
    Replies: 14
    Last Post: 07-11-2013, 10:43 AM
  4. Group Totals Based On Values
    By Poida3934 in forum Reports
    Replies: 1
    Last Post: 05-20-2013, 10:12 PM
  5. Group Totals in a form
    By mai1081 in forum Forms
    Replies: 1
    Last Post: 05-14-2008, 06:11 PM

Tags for this Thread

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