Results 1 to 5 of 5
  1. #1
    philipscodes is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Dubai
    Posts
    20

    Calculate Sales Advisor Commission based on tier chart

    Greetings Experts,



    I have a Access DB where I store sales data from our CRM server.
    I base this DB for all my Excel calculations/reports via MS Query.

    Now I have the business requirement to calculate the monthly commission for each sales advisor.
    It is based on a chart as per business rules and I have promptly placed these in an Access table as well.

    Now I have the sales table, commission chart table and some other useful lookup tables.

    Once I have a query that provides the correct commission calculation along with the entire sales field table, I can transfer this over to Excel for a 'subtotal' and my work is done.

    How do I calculate the commission based on this chart in Access Query?

    I have attached all the relevant tables and lookup tables for this exercise.
    Kindly advise how to go about this to obtain the desired results.

    Warm Regards,
    Philip
    Attached Thumbnails Attached Thumbnails SalesTable1.PNG   SalesAdvisorDetails1.PNG   SalesLocationName1.PNG   CommissionChart1.PNG  
    Last edited by philipscodes; 11-08-2017 at 07:29 AM. Reason: Better Attachments with Clearer Fields

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    you would make a Sum query,Q1, to get the agent totals for the period
    then make Q2, that uses Q1 and the commission chart (not joined together) but rather use criteria,

    Q1.AgentTotal => tCommision.LowLimit and Q1.AgentTotal <= tCommision.HighLimit

    this will return the CompAmt for that Agent

    Click image for larger version. 

Name:	agent bonus query.png 
Views:	18 
Size:	44.0 KB 
ID:	31164

  3. #3
    philipscodes is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Dubai
    Posts
    20
    Thanks Ranman.

    I have implemented your advise and have attached the result.

    We base the commission on units sold(we sell cars) not the invoice amount - so I have used a Count query instead.
    The commission also differs based on the location where the unit is sold, as is evident from my first attachment (commission chart).

    So, the result is not quiet what I expected.
    Plus, I would want all the fields in the SalesTable as well for the final result.

    Would you be kind to offer a tailored alternative please.

    Note: I have also attached the Count query alone as well, which give the correct result.

    Warm Regards,
    Philip
    Attached Thumbnails Attached Thumbnails Result.PNG   CountQuery.PNG  
    Last edited by philipscodes; 11-08-2017 at 08:15 AM. Reason: grammar

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    your compensation table must now be a query...since EACH agent has their own comp scale.
    If they all used 1 comp scale then my example works.

    Using my example , the comp query willl be joined to the Agents sale results (via ID or name), but the criteria will be the same.
    join qsComps and qsAgentSales on AgentID
    keep the BETWEEN low and high criteria.

  5. #5
    philipscodes is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Dubai
    Posts
    20
    Hi Ranman,

    Yes your solution worked but with a join as shown in the attachment.

    Thank you so much.
    Have up-voted and marked the thread as solved.

    Warm Regards,
    Philip
    Attached Thumbnails Attached Thumbnails JoinInter.PNG  

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

Similar Threads

  1. Replies: 26
    Last Post: 11-02-2016, 10:38 AM
  2. Replies: 11
    Last Post: 12-25-2015, 02:41 PM
  3. Replies: 15
    Last Post: 11-25-2014, 03:42 PM
  4. Calculate Sales of Previous Months
    By v!ctor in forum Queries
    Replies: 1
    Last Post: 09-07-2013, 01:36 PM
  5. Replies: 0
    Last Post: 12-13-2012, 03:18 AM

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