Results 1 to 3 of 3
  1. #1
    Ryan5896 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    4

    Access Query to multiply values against percentages for a set of data

    Hello,



    I am trying to create a simple database that will output a 12 month spread of department costs using multiplication.

    I am needing the query to have 12 expression columns for Jan-Dec that calculates and spreads Jan-Dec costs within the table named "tblForecast_Dept_Allocation", but it needs to spread those costs unique to business unit, department number, and account number.

    For example: Business Unit 42701 has 49 unique departments listed with a percentage noted in the "tblForecast_Dept_Allocation" table that sums to 100%. I need to create a query that will multiply the costs in Jan-Dec stored within table "tblForecast_Dept_Allocation" so that end result is 12 months of costs but re-spread at the 49 unique departments per each account listed. Same result happening for the other two business units listed.

    I took an attempt at creating the query using expression but can not seem to figure it out. I have attached my work so far. Any help or pointers is much appreciated!

    Thank you,
    Ryan
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Strongly advise not to use space in naming convention.

    You are omitting the "tbl" prefix of table names in the query.

    "Expression" needs to be "Sum" or "First". However, GROUP BY in this query serves no purpose. There will be 3128 records with or without aggregation because the GROUP BY fields combined are unique for each record.
    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
    Ryan5896 is offline Novice
    Windows 10 Office 365
    Join Date
    Oct 2022
    Posts
    4
    Thank you!!

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

Similar Threads

  1. Replies: 7
    Last Post: 08-24-2021, 10:18 PM
  2. How to multiply values on report same row
    By inke01 in forum Reports
    Replies: 53
    Last Post: 09-21-2020, 04:13 AM
  3. Replies: 4
    Last Post: 12-18-2019, 02:57 AM
  4. Percentages of Column Values in a Query
    By kheneasar in forum Queries
    Replies: 1
    Last Post: 01-28-2015, 09:40 AM
  5. Replies: 5
    Last Post: 06-13-2012, 07:43 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